Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/xen/xenstore/xenstore.c
Show First 20 Lines • Show All 1,235 Lines • ▼ Show 20 Lines | |||||
DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0); | DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0); | ||||
static devclass_t xenstore_devclass; | static devclass_t xenstore_devclass; | ||||
DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0); | DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0); | ||||
/*------------------------------- Sysctl Data --------------------------------*/ | /*------------------------------- Sysctl Data --------------------------------*/ | ||||
/* XXX Shouldn't the node be somewhere else? */ | /* XXX Shouldn't the node be somewhere else? */ | ||||
SYSCTL_NODE(_dev, OID_AUTO, xen, CTLFLAG_RD, NULL, "Xen"); | SYSCTL_NODE(_dev, OID_AUTO, xen, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, | ||||
"Xen"); | |||||
SYSCTL_INT(_dev_xen, OID_AUTO, xsd_port, CTLFLAG_RD, &xs.evtchn, 0, ""); | SYSCTL_INT(_dev_xen, OID_AUTO, xsd_port, CTLFLAG_RD, &xs.evtchn, 0, ""); | ||||
SYSCTL_ULONG(_dev_xen, OID_AUTO, xsd_kva, CTLFLAG_RD, (u_long *) &xen_store, 0, ""); | SYSCTL_ULONG(_dev_xen, OID_AUTO, xsd_kva, CTLFLAG_RD, (u_long *) &xen_store, 0, ""); | ||||
/*-------------------------------- Public API --------------------------------*/ | /*-------------------------------- Public API --------------------------------*/ | ||||
/*------- API comments for these methods can be found in xenstorevar.h -------*/ | /*------- API comments for these methods can be found in xenstorevar.h -------*/ | ||||
bool | bool | ||||
xs_initialized(void) | xs_initialized(void) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |