[BACK]Return to usbnet.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

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

Diff for /src/sys/dev/usb/usbnet.c between version 1.83 and 1.84

version 1.83, 2022/03/03 05:54:28 version 1.84, 2022/03/03 05:54:52
Line 102  volatile unsigned usbnet_number;
Line 102  volatile unsigned usbnet_number;
 static void usbnet_isowned_rx(struct usbnet *);  static void usbnet_isowned_rx(struct usbnet *);
 static void usbnet_isowned_tx(struct usbnet *);  static void usbnet_isowned_tx(struct usbnet *);
   
   static kmutex_t *
   usbnet_mutex_core(struct usbnet *un)
   {
           return &un->un_pri->unp_core_lock;
   }
   
   static __inline__ void
   usbnet_isowned_core(struct usbnet *un)
   {
           KASSERT(mutex_owned(usbnet_mutex_core(un)));
   }
   
 static int usbnet_modcmd(modcmd_t, void *);  static int usbnet_modcmd(modcmd_t, void *);
   
 #ifdef USB_DEBUG  #ifdef USB_DEBUG
Line 1312  usbnet_isdying(struct usbnet *un)
Line 1324  usbnet_isdying(struct usbnet *un)
   
 /* Locking. */  /* Locking. */
   
 void  
 usbnet_lock_core(struct usbnet *un)  
 {  
         mutex_enter(&un->un_pri->unp_core_lock);  
 }  
   
 void  
 usbnet_unlock_core(struct usbnet *un)  
 {  
         mutex_exit(&un->un_pri->unp_core_lock);  
 }  
   
 kmutex_t*  
 usbnet_mutex_core(struct usbnet *un)  
 {  
         return &un->un_pri->unp_core_lock;  
 }  
   
 static void  static void
 usbnet_isowned_rx(struct usbnet *un)  usbnet_isowned_rx(struct usbnet *un)
 {  {

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

CVSweb <webmaster@jp.NetBSD.org>