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

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

Diff for /src/sys/miscfs/fdesc/fdesc_vfsops.c between version 1.93 and 1.94

version 1.93, 2020/01/17 20:08:09 version 1.94, 2020/03/16 21:20:11
Line 263  struct vfsops fdesc_vfsops = {
Line 263  struct vfsops fdesc_vfsops = {
         .vfs_opv_descs = fdesc_vnodeopv_descs          .vfs_opv_descs = fdesc_vnodeopv_descs
 };  };
   
 static int  SYSCTL_SETUP(fdesc_sysctl_setup, "fdesc sysctl")
 fdesc_modcmd(modcmd_t cmd, void *arg)  
 {  {
         int error;  
   
         switch (cmd) {  
         case MODULE_CMD_INIT:  
                 error = vfs_attach(&fdesc_vfsops);  
                 if (error != 0)  
                         break;  
                 sysctl_createv(&fdesc_sysctl_log, 0, NULL, NULL,                  sysctl_createv(&fdesc_sysctl_log, 0, NULL, NULL,
                                CTLFLAG_PERMANENT,                                 CTLFLAG_PERMANENT,
                                CTLTYPE_NODE, "fdesc",                                 CTLTYPE_NODE, "fdesc",
Line 284  fdesc_modcmd(modcmd_t cmd, void *arg)
Line 277  fdesc_modcmd(modcmd_t cmd, void *arg)
                  * more instance of the "number to vfs" mapping problem, but                   * more instance of the "number to vfs" mapping problem, but
                  * "7" is the order as taken from sys/mount.h                   * "7" is the order as taken from sys/mount.h
                  */                   */
   }
   
   static int
   fdesc_modcmd(modcmd_t cmd, void *arg)
   {
           int error;
   
           switch (cmd) {
           case MODULE_CMD_INIT:
                   error = vfs_attach(&fdesc_vfsops);
                   if (error != 0)
                           break;
                 break;                  break;
         case MODULE_CMD_FINI:          case MODULE_CMD_FINI:
                 error = vfs_detach(&fdesc_vfsops);                  error = vfs_detach(&fdesc_vfsops);
                 if (error != 0)                  if (error != 0)
                         break;                          break;
                 sysctl_teardown(&fdesc_sysctl_log);  
                 break;                  break;
         default:          default:
                 error = ENOTTY;                  error = ENOTTY;

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

CVSweb <webmaster@jp.NetBSD.org>