do vn the correct way
This commit is contained in:
parent
6749324f75
commit
7ce60f4f0e
|
@ -42,7 +42,7 @@
|
|||
* @(#)conf.c 8.1 (Berkeley) 6/11/93
|
||||
*
|
||||
* from: Header: conf.c,v 1.15 93/05/05 09:43:29 torek Exp (LBL)
|
||||
* $Id: conf.c,v 1.10 1994/03/02 20:05:58 deraadt Exp $
|
||||
* $Id: conf.c,v 1.11 1994/05/12 08:22:03 deraadt Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -262,10 +262,6 @@ cdev_decl(bwtwo);
|
|||
cdev_decl(cgthree);
|
||||
|
||||
cdev_decl(vn);
|
||||
#define cdev_vn_init(c,n) { \
|
||||
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
|
||||
dev_init(c,n,write), dev_init(c,n,ioctl), 0, 0, 0, seltrue, 0, \
|
||||
dev_init(c,n,strategy) }
|
||||
|
||||
#ifdef LKM
|
||||
#define NLKM 1
|
||||
|
@ -416,7 +412,7 @@ struct cdevsw cdevsw[] =
|
|||
cdev_notdef(), /* 107 */
|
||||
cdev_notdef(), /* 108 */
|
||||
cdev_notdef(), /* 109 */
|
||||
cdev_vn_init(NVN,vn), /* 110: vnode */
|
||||
cdev_disk_init(NVN,vn), /* 110: vnode */
|
||||
cdev_gen_init(NTUN,tun), /* 111: tunnel */
|
||||
cdev_lkm_init(NLKM,lkm), /* 112: loadable kernel modules */
|
||||
cdev_lkm_stub(), /* 113: LKM STUB */
|
||||
|
|
Loading…
Reference in New Issue