g_shsec.c (223921) | g_shsec.c (227309) |
---|---|
1/*- 2 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/geom/shsec/g_shsec.c 223921 2011-07-11 05:22:31Z ae $"); | 28__FBSDID("$FreeBSD: head/sys/geom/shsec/g_shsec.c 227309 2011-11-07 15:43:11Z ed $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 26 unchanged lines hidden (view full) --- 63 .ctlreq = g_shsec_config, 64 .taste = g_shsec_taste, 65 .destroy_geom = g_shsec_destroy_geom, 66 .init = g_shsec_init, 67 .fini = g_shsec_fini 68}; 69 70SYSCTL_DECL(_kern_geom); | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 26 unchanged lines hidden (view full) --- 63 .ctlreq = g_shsec_config, 64 .taste = g_shsec_taste, 65 .destroy_geom = g_shsec_destroy_geom, 66 .init = g_shsec_init, 67 .fini = g_shsec_fini 68}; 69 70SYSCTL_DECL(_kern_geom); |
71SYSCTL_NODE(_kern_geom, OID_AUTO, shsec, CTLFLAG_RW, 0, "GEOM_SHSEC stuff"); | 71static SYSCTL_NODE(_kern_geom, OID_AUTO, shsec, CTLFLAG_RW, 0, 72 "GEOM_SHSEC stuff"); |
72static u_int g_shsec_debug = 0; 73TUNABLE_INT("kern.geom.shsec.debug", &g_shsec_debug); 74SYSCTL_UINT(_kern_geom_shsec, OID_AUTO, debug, CTLFLAG_RW, &g_shsec_debug, 0, 75 "Debug level"); 76static u_int g_shsec_maxmem = MAXPHYS * 100; 77TUNABLE_INT("kern.geom.shsec.maxmem", &g_shsec_maxmem); 78SYSCTL_UINT(_kern_geom_shsec, OID_AUTO, maxmem, CTLFLAG_RD, &g_shsec_maxmem, 79 0, "Maximum memory that can be allocated for I/O (in bytes)"); --- 758 unchanged lines hidden --- | 73static u_int g_shsec_debug = 0; 74TUNABLE_INT("kern.geom.shsec.debug", &g_shsec_debug); 75SYSCTL_UINT(_kern_geom_shsec, OID_AUTO, debug, CTLFLAG_RW, &g_shsec_debug, 0, 76 "Debug level"); 77static u_int g_shsec_maxmem = MAXPHYS * 100; 78TUNABLE_INT("kern.geom.shsec.maxmem", &g_shsec_maxmem); 79SYSCTL_UINT(_kern_geom_shsec, OID_AUTO, maxmem, CTLFLAG_RD, &g_shsec_maxmem, 80 0, "Maximum memory that can be allocated for I/O (in bytes)"); --- 758 unchanged lines hidden --- |