The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net80211/ieee80211_netbsd.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifdef __FreeBSD__
    2 typedef struct mtx ieee80211_node_lock_t;
    3 #define IEEE80211_NODE_LOCK_INIT(_ic, _name) \
    4         mtx_init(&(_ic)->ic_nodelock, _name, "802.11 node table", MTX_DEF)
    5 #define IEEE80211_NODE_LOCK_DESTROY(_ic)        mtx_destroy(&(_ic)->ic_nodelock)
    6 #define IEEE80211_NODE_LOCK(_ic)                mtx_lock(&(_ic)->ic_nodelock)
    7 #define IEEE80211_NODE_UNLOCK(_ic)              mtx_unlock(&(_ic)->ic_nodelock)
    8 #define IEEE80211_NODE_LOCK_ASSERT(_ic) \
    9         mtx_assert(&(_ic)->ic_nodelock, MA_OWNED)
   10 #else
   11 typedef int ieee80211_node_lock_t;
   12 #define IEEE80211_NODE_LOCK_INIT(_ic, _name)
   13 #define IEEE80211_NODE_LOCK_DESTROY(_ic)
   14 #define IEEE80211_NODE_LOCK(_ic)                (_ic)->ic_nodelock = splnet()
   15 #define IEEE80211_NODE_UNLOCK(_ic)              splx((_ic)->ic_nodelock)
   16 #define IEEE80211_NODE_LOCK_ASSERT(_ic)
   17 #endif
   18 #define IEEE80211_NODE_LOCK_BH          IEEE80211_NODE_LOCK
   19 #define IEEE80211_NODE_UNLOCK_BH        IEEE80211_NODE_UNLOCK

Cache object: a525fe806b7219cf16465f65d52cbfd2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.