Provided by: freebsd-manpages_6.2-1_all mtx_pool,
mtx_pool_alloc, mtx_pool_find, mtx_pool_lock,
mtx_pool_lock_spin, mtx_pool_unlock, mtx_pool_unlock_spin,
mtx_pool_create, mtx_pool_destroy - mutex pool routines struct
mtx * mtx_pool_alloc(struct mtx_pool *pool); struct mtx *
mtx_pool_find(struct mtx_pool *pool, void *ptr);
mtx_pool_lock(struct mtx_pool *pool, void *ptr);
mtx_pool_lock_spin(struct mtx_pool *pool, void *ptr);
mtx_pool_unlock(struct mtx_pool *pool, void *ptr);
mtx_pool_unlock_spin(struct mtx_pool *pool, void *ptr); struct
mtx_pool * mtx_pool_create(const char *mtx_name, int pool_size,
int opts); mtx_pool_destroy(struct mtx_pool **poolp); Mutex
pools are designed to be used as short term leaf mutexes; i.e.,
the last mutex one might acquire before calling msleep(9). They
operate using a shared pool of mutexes. A mutex may be chosen
from the pool based on a supplied pointer, which may or may not
point to anything valid, or the caller may allocate an arbitrary
shared mutex from the pool and save the