diff options
author | phk <phk@FreeBSD.org> | 2004-02-12 20:32:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-12 20:32:11 +0000 |
commit | 87cf92606ab5a8d878a35d5ac5ef150bc8485c7f (patch) | |
tree | e7787617e44080dd0d804dd02d3b25ef3a1546d3 /sys/geom/geom.h | |
parent | afe7ed20e4e7142f38a5404cdf3b94c41f9049aa (diff) | |
download | FreeBSD-src-87cf92606ab5a8d878a35d5ac5ef150bc8485c7f.zip FreeBSD-src-87cf92606ab5a8d878a35d5ac5ef150bc8485c7f.tar.gz |
Give both consumers and providers a {void *private, u_int index} which
the implementing class can use to hang internal info from.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 264c029..0514a19 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -148,6 +148,10 @@ struct g_consumer { int spoiled; struct devstat *stat; u_int nstart, nend; + + /* Two fields for the implementing class to use */ + void *private; + u_int index; }; /* @@ -161,7 +165,6 @@ struct g_provider { int acr, acw, ace; int error; TAILQ_ENTRY(g_provider) orphan; - u_int index; off_t mediasize; u_int sectorsize; u_int stripesize; @@ -172,6 +175,10 @@ struct g_provider { #define G_PF_CANDELETE 0x1 #define G_PF_WITHER 0x2 #define G_PF_ORPHAN 0x4 + + /* Two fields for the implementing class to use */ + void *private; + u_int index; }; /* geom_dev.c */ |