Mutex

Topics in this section,

  • In this section, you are going to learn

  • Mutex

#

Version

Freebsd

14.1.0

wpa_supplicant

2.10

test:~$ grep -rh "mutex_init" ./ | sed 's/^[ \t]*//' | sort | uniq

mutex_init(&mvm->mutex);
mutex_init(&trans_pcie->fw_mon_data.mutex);
mutex_init(&trans_pcie->mutex);
test:~$ grep -rh "mtx_init" ./ | sed 's/^[ \t]*//' | sort | uniq

mtx_init(&(_aq)->aq_lock, _name, "802.11 age q", MTX_DEF)
mtx_init(&(_as)->as_lock, _name, "802.11 ACL", MTX_DEF)
mtx_init(&(_psq)->psq_lock, _name, "802.11 ps q", MTX_DEF)
mtx_init(&(_st)->st_lock, _name, "802.11 scan table", MTX_DEF)
mtx_init(&(_st)->st_scanlock, _name, "802.11 scangen", MTX_DEF)
mtx_init(&(ms)->ms_rt_lock, name, "802.11s routing table", MTX_DEF)
mtx_init(&(rt)->rt_lock, _name, "802.11s route entry", MTX_DEF)
mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF | MTX_RECURSE);      \
mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF);    \
mtx_init(&fl->mtx, fl->name, NULL, MTX_DEF);                    \
mtx_init(&nl->mtx, nl->name, NULL, MTX_DEF | MTX_RECURSE);      \