From 0dc3b359ffdb348ac270bc7c08f792f8604ad2b9 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 10 Sep 2004 20:49:30 +0000 Subject: 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. --- sys/sys/conf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/sys/conf.h b/sys/sys/conf.h index e966531..f5a08a8 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -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; -- cgit v1.1