blkfront.c (5bb67f5f3f59d77e6f5d67b1a7fa7c514fdaff50) blkfront.c (54daceab555cb56765a8d4e63071ea44cd877f53)
1/*
2 * XenBSD block device driver
3 *
4 * Copyright (c) 2010-2013 Spectra Logic Corporation
5 * Copyright (c) 2009 Scott Long, Yahoo!
6 * Copyright (c) 2009 Frank Suchomel, Citrix
7 * Copyright (c) 2009 Doug F. Rabson, Citrix
8 * Copyright (c) 2005 Kip Macy

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

919 "max_request_size", CTLFLAG_RD, &xbd->xbd_max_request_size, 0,
920 "maximum size in bytes of a request (negotiated)");
921
922 SYSCTL_ADD_UINT(sysctl_ctx, children, OID_AUTO,
923 "ring_pages", CTLFLAG_RD, &xbd->xbd_ring_pages, 0,
924 "communication channel pages (negotiated)");
925
926 SYSCTL_ADD_PROC(sysctl_ctx, children, OID_AUTO,
1/*
2 * XenBSD block device driver
3 *
4 * Copyright (c) 2010-2013 Spectra Logic Corporation
5 * Copyright (c) 2009 Scott Long, Yahoo!
6 * Copyright (c) 2009 Frank Suchomel, Citrix
7 * Copyright (c) 2009 Doug F. Rabson, Citrix
8 * Copyright (c) 2005 Kip Macy

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

919 "max_request_size", CTLFLAG_RD, &xbd->xbd_max_request_size, 0,
920 "maximum size in bytes of a request (negotiated)");
921
922 SYSCTL_ADD_UINT(sysctl_ctx, children, OID_AUTO,
923 "ring_pages", CTLFLAG_RD, &xbd->xbd_ring_pages, 0,
924 "communication channel pages (negotiated)");
925
926 SYSCTL_ADD_PROC(sysctl_ctx, children, OID_AUTO,
927 "features", CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, xbd,
927 "features", CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, xbd,
928 0, xbd_sysctl_features, "A", "protocol features (negotiated)");
929}
930
931/*
932 * Translate Linux major/minor to an appropriate name and unit
933 * number. For HVM guests, this allows us to use the same drive names
934 * with blkfront as the emulated drives, easing transition slightly.
935 */

--- 716 unchanged lines hidden ---
928 0, xbd_sysctl_features, "A", "protocol features (negotiated)");
929}
930
931/*
932 * Translate Linux major/minor to an appropriate name and unit
933 * number. For HVM guests, this allows us to use the same drive names
934 * with blkfront as the emulated drives, easing transition slightly.
935 */

--- 716 unchanged lines hidden ---