From 2f5585d1ac251fe7ff0d1da38c8c4076ea66b851 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 4 Oct 1995 03:43:18 +0000 Subject: [PATCH] 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 --- sys/sys/conf.h | 6 +++++- 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 a198e8e0a1f..4254f263cb0 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 a198e8e0a1f..4254f263cb0 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_ */