Lines Matching defs:pool_lock

73 struct rwlock pool_lock = RWLOCK_INITIALIZER("pools");
79 void (*pl_init)(struct pool *, union pool_lock *,
81 void (*pl_enter)(union pool_lock *);
82 int (*pl_enter_try)(union pool_lock *);
83 void (*pl_leave)(union pool_lock *);
84 void (*pl_assert_locked)(union pool_lock *);
85 void (*pl_assert_unlocked)(union pool_lock *);
86 int (*pl_sleep)(void *, union pool_lock *, int, const char *);
102 pl_enter(struct pool *pp, union pool_lock *pl)
107 pl_enter_try(struct pool *pp, union pool_lock *pl)
112 pl_leave(struct pool *pp, union pool_lock *pl)
117 pl_assert_locked(struct pool *pp, union pool_lock *pl)
122 pl_assert_unlocked(struct pool *pp, union pool_lock *pl)
127 pl_sleep(struct pool *pp, void *ident, union pool_lock *lock, int priority,
470 rw_enter_write(&pool_lock);
484 rw_exit_write(&pool_lock);
502 rw_enter_write(&pool_lock);
517 rw_exit_write(&pool_lock);
557 union pool_lock lock;
1172 rw_enter_read(&pool_lock);
1175 rw_exit_read(&pool_lock);
1494 rw_enter_read(&pool_lock);
1501 rw_exit_read(&pool_lock);
1564 rw_enter_read(&pool_lock);
1591 rw_exit_read(&pool_lock);
1997 rw_enter_write(&pool_lock); /* serialise with the gc */
2000 rw_exit_write(&pool_lock);
2194 pool_lock_mtx_init(struct pool *pp, union pool_lock *lock,
2201 pool_lock_mtx_enter(union pool_lock *lock)
2207 pool_lock_mtx_enter_try(union pool_lock *lock)
2213 pool_lock_mtx_leave(union pool_lock *lock)
2219 pool_lock_mtx_assert_locked(union pool_lock *lock)
2225 pool_lock_mtx_assert_unlocked(union pool_lock *lock)
2231 pool_lock_mtx_sleep(void *ident, union pool_lock *lock, int priority,
2248 pool_lock_rw_init(struct pool *pp, union pool_lock *lock,
2255 pool_lock_rw_enter(union pool_lock *lock)
2261 pool_lock_rw_enter_try(union pool_lock *lock)
2267 pool_lock_rw_leave(union pool_lock *lock)
2273 pool_lock_rw_assert_locked(union pool_lock *lock)
2279 pool_lock_rw_assert_unlocked(union pool_lock *lock)
2285 pool_lock_rw_sleep(void *ident, union pool_lock *lock, int priority,