Diff for /fwsync/driver/fwsync_mod.c between versions 1.4 and 1.5

version 1.4, 2022/07/11 21:18:07 version 1.5, 2022/08/04 00:24:39
Line 25  struct cfg_sync fws_cfg; Line 25  struct cfg_sync fws_cfg;
   
 struct task fws_sndpkt_task;  struct task fws_sndpkt_task;
 struct taskqueue *fws_tq;  struct taskqueue *fws_tq;
   struct callout fws_co;
 struct mtx fws_mtx_c, fws_mtx_e;  struct mtx fws_mtx_c, fws_mtx_e;
 fwsync_sndpkt_t fwsync_sndpkt;   fwsync_sndpkt_t fwsync_sndpkt; 
   
Line 60  fws_fini(void *arg) Line 61  fws_fini(void *arg)
         }          }
         mtx_unlock(&fws_mtx_c);          mtx_unlock(&fws_mtx_c);
   
           callout_drain(&fws_co);
   
         mtx_destroy(&fws_mtx_c);          mtx_destroy(&fws_mtx_c);
         mtx_destroy(&fws_mtx_e);          mtx_destroy(&fws_mtx_e);
   
Line 110  fws_init(void *arg) Line 113  fws_init(void *arg)
                 return ENOMEM;                  return ENOMEM;
         } else          } else
                 taskqueue_start_threads(&fws_tq, 1, PI_NET, "fwsync tq");                  taskqueue_start_threads(&fws_tq, 1, PI_NET, "fwsync tq");
   
           /* callout */
   
           callout_init_mtx(&fws_co, &fws_mtx_e, 0);
   
         /* sysctl context */          /* sysctl context */
         sysctl_ctx_init(&fwsync_sysctl_ctx);          sysctl_ctx_init(&fwsync_sysctl_ctx);

Removed from v.1.4  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>