geom_kern.c (886d1942e8b127c969daf32921087878aa5bac94) | geom_kern.c (801bb689ca8be76700b0c16c159683b5fa89472d) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 43 unchanged lines hidden (view full) --- 52 53MALLOC_DEFINE(M_GEOM, "GEOM", "Geom data structures"); 54 55struct sx topology_lock; 56 57static struct proc *g_up_proc; 58 59int g_debugflags; | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 43 unchanged lines hidden (view full) --- 52 53MALLOC_DEFINE(M_GEOM, "GEOM", "Geom data structures"); 54 55struct sx topology_lock; 56 57static struct proc *g_up_proc; 58 59int g_debugflags; |
60int g_collectstats; |
|
60 61/* 62 * G_UP and G_DOWN are the two threads which push I/O through the 63 * stack. 64 * 65 * Things are procesed in a FIFO order, but these threads could be 66 * part of I/O prioritization by deciding which bios/bioqs to service 67 * in what order. --- 157 unchanged lines hidden (view full) --- 225 226SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD, 227 0, 0, sysctl_kern_geom_conftxt, "", 228 "Dump the GEOM config in txt"); 229 230SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW, 231 &g_debugflags, 0, ""); 232 | 61 62/* 63 * G_UP and G_DOWN are the two threads which push I/O through the 64 * stack. 65 * 66 * Things are procesed in a FIFO order, but these threads could be 67 * part of I/O prioritization by deciding which bios/bioqs to service 68 * in what order. --- 157 unchanged lines hidden (view full) --- 226 227SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD, 228 0, 0, sysctl_kern_geom_conftxt, "", 229 "Dump the GEOM config in txt"); 230 231SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW, 232 &g_debugflags, 0, ""); 233 |
234SYSCTL_INT(_kern_geom, OID_AUTO, collectstats, CTLFLAG_RW, 235 &g_collectstats, 0, ""); 236 |
|
233SYSCTL_INT(_debug_sizeof, OID_AUTO, g_class, CTLFLAG_RD, 234 0, sizeof(struct g_class), ""); 235SYSCTL_INT(_debug_sizeof, OID_AUTO, g_geom, CTLFLAG_RD, 236 0, sizeof(struct g_geom), ""); 237SYSCTL_INT(_debug_sizeof, OID_AUTO, g_provider, CTLFLAG_RD, 238 0, sizeof(struct g_provider), ""); 239SYSCTL_INT(_debug_sizeof, OID_AUTO, g_consumer, CTLFLAG_RD, 240 0, sizeof(struct g_consumer), ""); 241SYSCTL_INT(_debug_sizeof, OID_AUTO, g_bioq, CTLFLAG_RD, 242 0, sizeof(struct g_bioq), ""); 243SYSCTL_INT(_debug_sizeof, OID_AUTO, g_event, CTLFLAG_RD, 244 0, sizeof(struct g_event), ""); | 237SYSCTL_INT(_debug_sizeof, OID_AUTO, g_class, CTLFLAG_RD, 238 0, sizeof(struct g_class), ""); 239SYSCTL_INT(_debug_sizeof, OID_AUTO, g_geom, CTLFLAG_RD, 240 0, sizeof(struct g_geom), ""); 241SYSCTL_INT(_debug_sizeof, OID_AUTO, g_provider, CTLFLAG_RD, 242 0, sizeof(struct g_provider), ""); 243SYSCTL_INT(_debug_sizeof, OID_AUTO, g_consumer, CTLFLAG_RD, 244 0, sizeof(struct g_consumer), ""); 245SYSCTL_INT(_debug_sizeof, OID_AUTO, g_bioq, CTLFLAG_RD, 246 0, sizeof(struct g_bioq), ""); 247SYSCTL_INT(_debug_sizeof, OID_AUTO, g_event, CTLFLAG_RD, 248 0, sizeof(struct g_event), ""); |
249SYSCTL_INT(_debug_sizeof, OID_AUTO, g_stat, CTLFLAG_RD, 250 0, sizeof(struct g_stat), ""); |
|