xenstore.c (cfa0b7b82fbdda56d7160569def5c6133eb045aa) xenstore.c (41fc1ce14c2071aa9d020fee1d6605cb26ed176b)
1/******************************************************************************
2 * xenstore.c
3 *
4 * Low-level kernel interface to the XenStore.
5 *
6 * Copyright (C) 2005 Rusty Russell, IBM Corporation
7 * Copyright (C) 2009,2010 Spectra Logic Corporation
8 *

--- 1227 unchanged lines hidden (view full) ---

1236
1237DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0);
1238static devclass_t xenstore_devclass;
1239
1240DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0);
1241
1242/*------------------------------- Sysctl Data --------------------------------*/
1243/* XXX Shouldn't the node be somewhere else? */
1/******************************************************************************
2 * xenstore.c
3 *
4 * Low-level kernel interface to the XenStore.
5 *
6 * Copyright (C) 2005 Rusty Russell, IBM Corporation
7 * Copyright (C) 2009,2010 Spectra Logic Corporation
8 *

--- 1227 unchanged lines hidden (view full) ---

1236
1237DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0);
1238static devclass_t xenstore_devclass;
1239
1240DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0);
1241
1242/*------------------------------- Sysctl Data --------------------------------*/
1243/* XXX Shouldn't the node be somewhere else? */
1244SYSCTL_NODE(_dev, OID_AUTO, xen, CTLFLAG_RD, NULL, "Xen");
1244SYSCTL_NODE(_dev, OID_AUTO, xen, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
1245 "Xen");
1245SYSCTL_INT(_dev_xen, OID_AUTO, xsd_port, CTLFLAG_RD, &xs.evtchn, 0, "");
1246SYSCTL_ULONG(_dev_xen, OID_AUTO, xsd_kva, CTLFLAG_RD, (u_long *) &xen_store, 0, "");
1247
1248/*-------------------------------- Public API --------------------------------*/
1249/*------- API comments for these methods can be found in xenstorevar.h -------*/
1250bool
1251xs_initialized(void)
1252{

--- 406 unchanged lines hidden ---
1246SYSCTL_INT(_dev_xen, OID_AUTO, xsd_port, CTLFLAG_RD, &xs.evtchn, 0, "");
1247SYSCTL_ULONG(_dev_xen, OID_AUTO, xsd_kva, CTLFLAG_RD, (u_long *) &xen_store, 0, "");
1248
1249/*-------------------------------- Public API --------------------------------*/
1250/*------- API comments for these methods can be found in xenstorevar.h -------*/
1251bool
1252xs_initialized(void)
1253{

--- 406 unchanged lines hidden ---