xen-blkfront.c (754451342fc5954061ede74b0a8485ec4a4c6eaa) | xen-blkfront.c (5657a819a8d94426c76be04dcedfad0f64cfff00) |
---|---|
1/* 2 * blkfront.c 3 * 4 * XenLinux virtual block device driver. 5 * 6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand 7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge 8 * Copyright (c) 2004, Christian Limpach --- 115 unchanged lines hidden (view full) --- 124 125/* 126 * Maximum number of segments in indirect requests, the actual value used by 127 * the frontend driver is the minimum of this value and the value provided 128 * by the backend driver. 129 */ 130 131static unsigned int xen_blkif_max_segments = 32; | 1/* 2 * blkfront.c 3 * 4 * XenLinux virtual block device driver. 5 * 6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand 7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge 8 * Copyright (c) 2004, Christian Limpach --- 115 unchanged lines hidden (view full) --- 124 125/* 126 * Maximum number of segments in indirect requests, the actual value used by 127 * the frontend driver is the minimum of this value and the value provided 128 * by the backend driver. 129 */ 130 131static unsigned int xen_blkif_max_segments = 32; |
132module_param_named(max_indirect_segments, xen_blkif_max_segments, uint, 133 S_IRUGO); | 132module_param_named(max_indirect_segments, xen_blkif_max_segments, uint, 0444); |
134MODULE_PARM_DESC(max_indirect_segments, 135 "Maximum amount of segments in indirect requests (default is 32)"); 136 137static unsigned int xen_blkif_max_queues = 4; | 133MODULE_PARM_DESC(max_indirect_segments, 134 "Maximum amount of segments in indirect requests (default is 32)"); 135 136static unsigned int xen_blkif_max_queues = 4; |
138module_param_named(max_queues, xen_blkif_max_queues, uint, S_IRUGO); | 137module_param_named(max_queues, xen_blkif_max_queues, uint, 0444); |
139MODULE_PARM_DESC(max_queues, "Maximum number of hardware queues/rings used per virtual disk"); 140 141/* 142 * Maximum order of pages to be used for the shared ring between front and 143 * backend, 4KB page granularity is used. 144 */ 145static unsigned int xen_blkif_max_ring_order; | 138MODULE_PARM_DESC(max_queues, "Maximum number of hardware queues/rings used per virtual disk"); 139 140/* 141 * Maximum order of pages to be used for the shared ring between front and 142 * backend, 4KB page granularity is used. 143 */ 144static unsigned int xen_blkif_max_ring_order; |
146module_param_named(max_ring_page_order, xen_blkif_max_ring_order, int, S_IRUGO); | 145module_param_named(max_ring_page_order, xen_blkif_max_ring_order, int, 0444); |
147MODULE_PARM_DESC(max_ring_page_order, "Maximum order of pages to be used for the shared ring"); 148 149#define BLK_RING_SIZE(info) \ 150 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * (info)->nr_ring_pages) 151 152#define BLK_MAX_RING_SIZE \ 153 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * XENBUS_MAX_RING_GRANTS) 154 --- 2523 unchanged lines hidden --- | 146MODULE_PARM_DESC(max_ring_page_order, "Maximum order of pages to be used for the shared ring"); 147 148#define BLK_RING_SIZE(info) \ 149 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * (info)->nr_ring_pages) 150 151#define BLK_MAX_RING_SIZE \ 152 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * XENBUS_MAX_RING_GRANTS) 153 --- 2523 unchanged lines hidden --- |