Add two spare elements for planned but not yet implemented stuff related

to device driver unloading.  Adding these two now and MT5'ing them will
allow us to preserve binary compatibility on RELENG_5 when these facilities
are MFC'ed.

MT5 Candiate.
This commit is contained in:
Poul-Henning Kamp 2004-09-10 20:49:30 +00:00
parent 7f4caa8c59
commit 5263eebc9a

View File

@ -153,6 +153,9 @@ typedef int d_kqfilter_t(struct cdev *dev, struct knote *kn);
typedef int d_mmap_t(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr,
int nprot);
typedef int d_spare1_t(struct cdev *dev);
typedef int d_spare2_t(struct cdev *dev);
typedef int dumper_t(
void *priv, /* Private to the driver. */
void *virtual, /* Virtual (mapped) address. */
@ -216,6 +219,8 @@ struct cdevsw {
d_strategy_t *d_strategy;
dumper_t *d_dump;
d_kqfilter_t *d_kqfilter;
d_spare1_t *d_spare1;
d_spare2_t *d_spare2;
/* These fields should not be messed with by drivers */
LIST_ENTRY(cdevsw) d_list;