diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-13 18:42:35 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-13 18:42:35 +0000 |
| commit | e970552d3a14dc730f5489082f23df3ff288a3a3 (patch) | |
| tree | c7b49e0fe8c68a94a373714c8fd930953f82923d /sys | |
| parent | 6f20c9faab5b6da28e7002ecdf41cb19aa1127b8 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/geom/geom.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index c053fcb6cd831..ad63e4b84f4ed 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -287,6 +287,9 @@ extern struct sx topology_lock; sx_assert(&topology_lock, SX_XLOCKED); \ } while (0) +#define DECLARE_GEOM_CLASS_INIT(class, name, init) \ + SYSINIT(name, SI_SUB_PSEUDO, SI_ORDER_FIRST, init, NULL); + #define DECLARE_GEOM_CLASS(class, name) \ static void \ name##init(void) \ @@ -295,7 +298,7 @@ extern struct sx topology_lock; g_add_class(&class); \ mtx_lock(&Giant); \ } \ - SYSINIT(name, SI_SUB_PSEUDO, SI_ORDER_FIRST, name##init, NULL); + DECLARE_GEOM_CLASS_INIT(class, name, name##init); #endif /* _KERNEL */ |
