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
This commit is contained in:
Julian Elischer 1995-10-04 03:43:18 +00:00
parent d8af1be3d9
commit 2f5585d1ac
2 changed files with 10 additions and 2 deletions

View File

@ -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_ */

View File

@ -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_ */