[BACK]Return to kernfs_vfsops.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / miscfs / kernfs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/miscfs/kernfs/kernfs_vfsops.c between version 1.7 and 1.8

version 1.7, 1993/06/07 05:25:24 version 1.8, 1993/08/23 05:02:14
Line 57  extern struct vnodeops spec_vnodeops;
Line 57  extern struct vnodeops spec_vnodeops;
   
 struct vnode *rrootdevvp;  struct vnode *rrootdevvp;
   
 /*  
  * cdevvp:  
  * get a character device node.  
  * this is used a few places in the miscfs routines.  
  *  
  * copied from the bdevvp in kern/vfs_subr.c  
  */  
 cdevvp(dev, vpp)  
         dev_t dev;  
         struct vnode **vpp;  
 {  
         register struct vnode *vp;  
         struct vnode *nvp;  
         int error;  
   
         if (dev == NODEV)  
                 return (0);  
         error = getnewvnode(VT_NON, (struct mount *)0, &spec_vnodeops, &nvp);  
         if (error) {  
                 *vpp = 0;  
                 return (error);  
         }  
         vp = nvp;  
         vp->v_type = VCHR;  
         if (nvp = checkalias(vp, dev, (struct mount *)0)) {  
                 vput(vp);  
                 vp = nvp;  
         }  
         *vpp = vp;  
         return (0);  
 }  
   
 kernfs_init()  kernfs_init()
 {  {
   int error, bmaj, cmaj;    int error, bmaj, cmaj;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>