[BACK]Return to kernfs_vnops.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_vnops.c between version 1.124 and 1.125

version 1.124, 2006/06/23 20:30:11 version 1.125, 2006/06/23 20:54:21
Line 166  const struct kernfs_fileop kernfs_defaul
Line 166  const struct kernfs_fileop kernfs_defaul
   { .kf_fileop = KERNFS_XWRITE },    { .kf_fileop = KERNFS_XWRITE },
   { .kf_fileop = KERNFS_FILEOP_OPEN },    { .kf_fileop = KERNFS_FILEOP_OPEN },
   { .kf_fileop = KERNFS_FILEOP_GETATTR,    { .kf_fileop = KERNFS_FILEOP_GETATTR,
     .kf_genop = {kernfs_default_fileop_getattr} },      .kf_vop = kernfs_default_fileop_getattr },
   { .kf_fileop = KERNFS_FILEOP_IOCTL },    { .kf_fileop = KERNFS_FILEOP_IOCTL },
   { .kf_fileop = KERNFS_FILEOP_CLOSE },    { .kf_fileop = KERNFS_FILEOP_CLOSE },
   { .kf_fileop = KERNFS_FILEOP_READ, .kf_genop = {kernfs_default_xread} },    { .kf_fileop = KERNFS_FILEOP_READ,
   { .kf_fileop = KERNFS_FILEOP_WRITE, .kf_genop = {kernfs_default_xwrite} },      .kf_vop = kernfs_default_xread },
     { .kf_fileop = KERNFS_FILEOP_WRITE,
       .kf_vop = kernfs_default_xwrite },
 };  };
   
 int     kernfs_lookup(void *);  int     kernfs_lookup(void *);
Line 301  kernfs_alloctype(int nkf, const struct k
Line 303  kernfs_alloctype(int nkf, const struct k
                 skf.kf_type = nextfreetype;                  skf.kf_type = nextfreetype;
                 skf.kf_fileop = kf[i].kf_fileop;                  skf.kf_fileop = kf[i].kf_fileop;
                 if ((fkf = SPLAY_FIND(kfsfileoptree, &kfsfileoptree, &skf)))                  if ((fkf = SPLAY_FIND(kfsfileoptree, &kfsfileoptree, &skf)))
                         fkf->kf_genop = kf[i].kf_genop;                          fkf->kf_vop = kf[i].kf_vop;
         }          }
   
         return nextfreetype++;          return nextfreetype++;

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125

CVSweb <webmaster@jp.NetBSD.org>