summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_int.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-03-10 08:49:08 +0000
committerphk <phk@FreeBSD.org>2004-03-10 08:49:08 +0000
commit9a7074f4cb924ae82908691b9014ec3046fa7a8a (patch)
tree3d29009688ec2443c80b12f054dff9ab4238ba22 /sys/geom/geom_int.h
parent7432091236a4f7e854963b7353bb9e33c7f126ad (diff)
downloadFreeBSD-src-9a7074f4cb924ae82908691b9014ec3046fa7a8a.zip
FreeBSD-src-9a7074f4cb924ae82908691b9014ec3046fa7a8a.tar.gz
Rearrange some of the GEOM debugging tools to be more structured.
Retire g_sanity() and corresponding debugflag (0x8) Retire g_{stall,release}_events(). Under #ifdef DIAGNOSTIC: Make g_valid_obj() an official function and have it return an an non-zero integer which indicates the kind of object when found. Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based on g_valid_obj(). Sprinkle calls to these macros liberally over the infrastructure. Always check that we do not free a live object.
Diffstat (limited to 'sys/geom/geom_int.h')
-rw-r--r--sys/geom/geom_int.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/geom/geom_int.h b/sys/geom/geom_int.h
index 952b6c6..1b94549 100644
--- a/sys/geom/geom_int.h
+++ b/sys/geom/geom_int.h
@@ -44,7 +44,7 @@ extern int g_debugflags;
* 1 G_T_TOPOLOGY
* 2 G_T_BIO
* 4 G_T_ACCESS
- * 8 Enable sanity checks
+ * 8 (unused)
* 16 Allow footshooting on rank#1 providers
* 32 G_T_DETAILS
*/
@@ -68,8 +68,6 @@ void g_conftxt(void *, int flag);
/* geom_event.c */
void g_event_init(void);
void g_run_events(void);
-void g_stall_events(void);
-void g_release_events(void);
/* geom_subr.c */
extern struct class_list_head g_classes;
OpenPOWER on IntegriCloud