Home
last modified time | relevance | path

Searched refs:rw_lock (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/lib/libfakekernel/common/
H A Drwlock.c44 (void) rwlock_init(&rwlp->rw_lock, USYNC_THREAD, NULL); in rw_init()
51 (void) rwlock_destroy(&rwlp->rw_lock); in rw_destroy()
61 rc = rw_rdlock(&rwlp->rw_lock); in rw_enter()
63 rc = rw_wrlock(&rwlp->rw_lock); in rw_enter()
72 if (_rw_write_held(&rwlp->rw_lock)) { in rw_exit()
76 (void) rw_unlock(&rwlp->rw_lock); in rw_exit()
85 rv = rw_trywrlock(&rwlp->rw_lock); in rw_tryenter()
89 rv = rw_tryrdlock(&rwlp->rw_lock); in rw_tryenter()
107 VERIFY(rw_unlock(&rwlp->rw_lock) == 0); in rw_downgrade()
108 VERIFY(rw_rdlock(&rwlp->rw_lock) == 0); in rw_downgrade()
/titanic_41/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.c229 rw_enter(&tid->rw_lock, RW_WRITER); in t_insert()
320 rw_exit(&tid->rw_lock); in t_insert()
344 rw_enter(&tid->rw_lock, RW_WRITER); in t_insert6()
385 rw_exit(&tid->rw_lock); in t_insert6()
614 rw_enter(&tid->rw_lock, RW_WRITER); in t_remove()
618 rw_exit(&tid->rw_lock); in t_remove()
641 rw_enter(&tid->rw_lock, RW_WRITER); in t_remove6()
683 rw_exit(&tid->rw_lock); in t_remove6()
710 rw_enter(&tid->rw_lock, RW_READER); in t_retrieve()
715 rw_exit(&tid->rw_lock); in t_retrieve()
[all …]
H A Dclassifier-objects.h215 krwlock_t rw_lock; /* lock protecting this trie */ member
H A Dfilters.c184 rw_init(&ipgpc_trie_list[trie_id].rw_lock, NULL, RW_DEFAULT, NULL); in insert_ipgpc_trie_list_info()
2057 rw_destroy(&ipgpc_trie_list[IPGPC_TRIE_SADDRID6].rw_lock); in ipgpc_destroy()
2066 rw_destroy(&ipgpc_trie_list[IPGPC_TRIE_DADDRID6].rw_lock); in ipgpc_destroy()
2077 rw_destroy(&ipgpc_trie_list[i].rw_lock); in ipgpc_destroy()
/titanic_41/usr/src/cmd/lms/SyncLib/Include/
H A DLock.h53 Lock(RWLock &rw_lock, RWLock::RWMode mode = RWLock::READ_ONLY) :
54 _sem(NULL), _rw_lock(&rw_lock) in _sem()
/titanic_41/usr/src/lib/libzpool/common/
H A Dkernel.c208 rwlock_init(&rwlp->rw_lock, USYNC_THREAD, NULL); in rw_init()
216 rwlock_destroy(&rwlp->rw_lock); in rw_destroy()
230 VERIFY(rw_wrlock(&rwlp->rw_lock) == 0); in rw_enter()
232 VERIFY(rw_rdlock(&rwlp->rw_lock) == 0); in rw_enter()
244 VERIFY(rw_unlock(&rwlp->rw_lock) == 0); in rw_exit()
256 rv = rw_trywrlock(&rwlp->rw_lock); in rw_tryenter()
258 rv = rw_tryrdlock(&rwlp->rw_lock); in rw_tryenter()
/titanic_41/usr/src/lib/libfakekernel/common/sys/
H A Drwlock.h52 lwp_rwlock_t rw_lock; member
/titanic_41/usr/src/lib/libzpool/common/sys/
H A Dzfs_context.h243 rwlock_t rw_lock; member
253 #define RW_READ_HELD(x) _rw_read_held(&(x)->rw_lock)
256 #define RW_WRITE_HELD(x) _rw_write_held(&(x)->rw_lock)
/titanic_41/usr/src/uts/common/inet/ipf/netinet/
H A Dip_compat.h434 # define KRWLOCK_T struct rw_lock