/*-1* SPDX-License-Identifier: BSD-3-Clause2*3* Copyright (c) 2002 Poul-Henning Kamp4* Copyright (c) 2002 Networks Associates Technology, Inc.5* All rights reserved.6*7* This software was developed for the FreeBSD Project by Poul-Henning Kamp8* and NAI Labs, the Security Research Division of Network Associates, Inc.9* under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the10* DARPA CHATS research program.11*12* Redistribution and use in source and binary forms, with or without13* modification, are permitted provided that the following conditions14* are met:15* 1. Redistributions of source code must retain the above copyright16* notice, this list of conditions and the following disclaimer.17* 2. Redistributions in binary form must reproduce the above copyright18* notice, this list of conditions and the following disclaimer in the19* documentation and/or other materials provided with the distribution.20* 3. The names of the authors may not be used to endorse or promote21* products derived from this software without specific prior written22* permission.23*24* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND25* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE26* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE27* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE28* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL29* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS30* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)31* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT32* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY33* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF34* SUCH DAMAGE.35*/3637LIST_HEAD(class_list_head, g_class);38TAILQ_HEAD(g_tailq_head, g_geom);3940extern int g_collectstats;41#define G_STATS_PROVIDERS 1 /* Collect I/O stats for providers */42#define G_STATS_CONSUMERS 2 /* Collect I/O stats for consumers */4344/* geom_dump.c */45void g_confxml(void *, int flag);46void g_conf_specific(struct sbuf *sb, struct g_geom **gps);47void g_conf_cat_escaped(struct sbuf *sb, const char *buf);48void g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...);49void g_confdot(void *, int flag);50void g_conftxt(void *, int flag);5152/* geom_event.c */53void g_event_init(void);54void g_run_events(void);55void g_do_wither(void);5657/* geom_subr.c */58extern struct class_list_head g_classes;59extern char *g_wait_event, *g_wait_up, *g_wait_down;60void g_wither_washer(void);6162/* geom_io.c */63void g_io_init(void);64void g_io_schedule_down(struct thread *tp);65void g_io_schedule_up(struct thread *tp);6667/* geom_kern.c / geom_kernsim.c */68void g_init(void);69extern struct thread *g_up_td;70extern struct thread *g_down_td;71extern int g_shutdown;72extern int g_notaste;7374/* geom_ctl.c */75void g_ctl_init(void);767778