diff options
author | phk <phk@FreeBSD.org> | 2002-06-05 20:30:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-06-05 20:30:36 +0000 |
commit | 7f7b291518b00d350eb19be5613ba5f44dea5db9 (patch) | |
tree | c00bb36b848696cccd66b1b04a81cc487a607ec9 /sys/geom/geom.h | |
parent | 93f29d8926acf7a0ce2ceaaef0c39ad3f11172c7 (diff) | |
download | FreeBSD-src-7f7b291518b00d350eb19be5613ba5f44dea5db9.zip FreeBSD-src-7f7b291518b00d350eb19be5613ba5f44dea5db9.tar.gz |
Change the registration of magic spaces so it does its own memory management.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 8fdf07d..665a992 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -197,6 +197,7 @@ struct g_magicspaces { uintptr_t geom_id; char class[8]; uint nmagic; + uint nspace; struct g_magicspace *magicspace; }; @@ -223,7 +224,7 @@ void g_silence(void); int g_access_abs(struct g_consumer *cp, int read, int write, int exclusive); int g_access_rel(struct g_consumer *cp, int read, int write, int exclusive); void g_add_class(struct g_class *mp); -int g_add_magicspace(struct g_geom *gp, u_int index, const char *name, off_t start, u_int len, u_int flags); +int g_add_magicspace(struct g_geom *gp, const char *name, off_t start, u_int len, u_int flags); int g_attach(struct g_consumer *cp, struct g_provider *pp); struct g_geom *g_create_geomf(char *class, struct g_provider *, char *fmt, ...); void g_destroy_consumer(struct g_consumer *cp); @@ -239,7 +240,6 @@ int g_haveattr_off_t(struct bio *bp, char *attribute, off_t val); struct g_geom * g_insert_geom(char *class, struct g_consumer *cp); struct g_consumer * g_new_consumer(struct g_geom *gp); struct g_geom * g_new_geomf(struct g_class *mp, char *fmt, ...); -int g_new_magicspaces(struct g_geom *gp, int nspaces); struct g_provider * g_new_providerf(struct g_geom *gp, char *fmt, ...); void g_sanity(void *ptr); void g_spoil(struct g_provider *pp, struct g_consumer *cp); |