geom_kern.c (110520) | geom_kern.c (110523) |
---|---|
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 --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 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 --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/geom/geom_kern.c 110520 2003-02-07 21:53:55Z phk $ | 35 * $FreeBSD: head/sys/geom/geom_kern.c 110523 2003-02-07 23:08:24Z phk $ |
36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/malloc.h> 42#include <sys/bio.h> 43#include <sys/sysctl.h> --- 8 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; | 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/malloc.h> 42#include <sys/bio.h> 43#include <sys/sysctl.h> --- 8 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), ""); |
|