mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Give both consumers and providers a {void *private, u_int index} which
the implementing class can use to hang internal info from.
This commit is contained in:
parent
b30190b542
commit
f865123ec4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125743
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user