diff options
author | julian <julian@FreeBSD.org> | 1995-10-04 03:43:18 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-10-04 03:43:18 +0000 |
commit | e3dc667e862164886cbc0beb05e6d49a39c5fb8f (patch) | |
tree | 08afa46ee50aaca386110676b14a0ff2e011f7c6 | |
parent | ad186c6e9860e8b3fad57b32d52979692beb45bb (diff) | |
download | FreeBSD-src-e3dc667e862164886cbc0beb05e6d49a39c5fb8f.zip FreeBSD-src-e3dc667e862164886cbc0beb05e6d49a39c5fb8f.tar.gz |
add the file kern_conf.c so it can be compiled in when needed
for testing.. (for cdevsw_add and bdevsw_add)
make the lkm code use the new generic devsw add routines (if so required)
define these routines in conf.h so we can use them
-rw-r--r-- | sys/sys/conf.h | 6 | ||||
-rw-r--r-- | sys/sys/linedisc.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index a198e8e..4254f26 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)conf.h 8.3 (Berkeley) 1/21/94 - * $Id: conf.h,v 1.16 1995/09/08 19:18:02 bde Exp $ + * $Id: conf.h,v 1.17 1995/09/10 21:36:12 bde Exp $ */ #ifndef _SYS_CONF_H_ @@ -160,6 +160,10 @@ int iszerodev __P((dev_t dev)); int register_cdev __P((const char *name, const struct cdevsw *cdp)); int setdumpdev __P((dev_t)); int unregister_cdev __P((const char *name, const struct cdevsw *cdp)); +#ifdef JREMOD +int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw *old)); +int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw *old)); +#endif #endif #endif /* !_SYS_CONF_H_ */ diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index a198e8e..4254f26 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)conf.h 8.3 (Berkeley) 1/21/94 - * $Id: conf.h,v 1.16 1995/09/08 19:18:02 bde Exp $ + * $Id: conf.h,v 1.17 1995/09/10 21:36:12 bde Exp $ */ #ifndef _SYS_CONF_H_ @@ -160,6 +160,10 @@ int iszerodev __P((dev_t dev)); int register_cdev __P((const char *name, const struct cdevsw *cdp)); int setdumpdev __P((dev_t)); int unregister_cdev __P((const char *name, const struct cdevsw *cdp)); +#ifdef JREMOD +int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw *old)); +int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw *old)); +#endif #endif #endif /* !_SYS_CONF_H_ */ |