summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-09 16:27:11 +0000
committerjhb <jhb@FreeBSD.org>2007-03-09 16:27:11 +0000
commit60ad130f466f4ce8bb90b4d47775516afbfb2e48 (patch)
tree71366da8c5df1e7210aad9d816166233c0107eff /usr.sbin/bsnmpd
parentb03e9e93edda2ff558f1eb141e812c32a2931dc2 (diff)
downloadFreeBSD-src-60ad130f466f4ce8bb90b4d47775516afbfb2e48.zip
FreeBSD-src-60ad130f466f4ce8bb90b4d47775516afbfb2e48.tar.gz
Add two new function pointers 'lc_lock' and 'lc_unlock' to lock classes.
These functions are intended to be used to drop a lock and then reacquire it when doing an sleep such as msleep(9). Both functions accept a 'struct lock_object *' as their first parameter. The 'lc_unlock' function returns an integer that is then passed as the second paramter to the subsequent 'lc_lock' function. This can be used to communicate state. For example, sx locks and rwlocks use this to indicate if the lock was share/read locked vs exclusive/write locked. Currently, spin mutexes and lockmgr locks do not provide working lc_lock and lc_unlock functions.
Diffstat (limited to 'usr.sbin/bsnmpd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud