Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/blkfront/blkfront.c
Show All 12 Lines | |||||
"max_request_size", CTLFLAG_RD, &xbd->xbd_max_request_size, 0, | "max_request_size", CTLFLAG_RD, &xbd->xbd_max_request_size, 0, | ||||
"maximum size in bytes of a request (negotiated)"); | "maximum size in bytes of a request (negotiated)"); | ||||
SYSCTL_ADD_UINT(sysctl_ctx, children, OID_AUTO, | SYSCTL_ADD_UINT(sysctl_ctx, children, OID_AUTO, | ||||
"ring_pages", CTLFLAG_RD, &xbd->xbd_ring_pages, 0, | "ring_pages", CTLFLAG_RD, &xbd->xbd_ring_pages, 0, | ||||
"communication channel pages (negotiated)"); | "communication channel pages (negotiated)"); | ||||
SYSCTL_ADD_PROC(sysctl_ctx, children, OID_AUTO, | SYSCTL_ADD_PROC(sysctl_ctx, children, OID_AUTO, | ||||
"features", CTLTYPE_STRING|CTLFLAG_RD, xbd, 0, | "features", | ||||
CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, xbd, 0, | |||||
xbd_sysctl_features, "A", "protocol features (negotiated)"); | xbd_sysctl_features, "A", "protocol features (negotiated)"); | ||||
} | } | ||||
/* | /* | ||||
* Translate Linux major/minor to an appropriate name and unit | * Translate Linux major/minor to an appropriate name and unit | ||||
* number. For HVM guests, this allows us to use the same drive names | * number. For HVM guests, this allows us to use the same drive names | ||||
* with blkfront as the emulated drives, easing transition slightly. | * with blkfront as the emulated drives, easing transition slightly. | ||||
*/ | */ | ||||
Show All 12 Lines |