/netbsd-current/external/bsd/libevent/dist/ |
H A D | evthread.c | 190 unsigned locktype; member in struct:debug_lock 199 debug_lock_alloc(unsigned locktype) argument 206 locktype|EVTHREAD_LOCKTYPE_RECURSIVE))) { 214 result->locktype = locktype; 221 debug_lock_free(void *lock_, unsigned locktype) argument 225 EVUTIL_ASSERT(locktype == lock->locktype); 229 lock->locktype|EVTHREAD_LOCKTYPE_RECURSIVE); 242 if (!(lock->locktype 370 evthread_setup_global_lock_(void *lock_, unsigned locktype, int enable_locks) argument 433 evthreadimpl_lock_alloc_(unsigned locktype) argument 445 evthreadimpl_lock_free_(void *lock, unsigned locktype) argument [all...] |
H A D | evthread-internal.h | 82 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ 84 evthread_lock_fns_.alloc(locktype) : NULL) 87 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ 91 evthread_lock_fns_.free(lock_tmp_, (locktype)); \ 193 void *evthreadimpl_lock_alloc_(unsigned locktype); 195 void evthreadimpl_lock_free_(void *lock, unsigned locktype); 217 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ 218 ((lockvar) = evthreadimpl_lock_alloc_(locktype)) 220 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ 224 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \ [all...] |
H A D | evthread_pthread.c | 48 evthread_posix_lock_alloc(unsigned locktype) argument 54 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE) 64 evthread_posix_lock_free(void *lock_, unsigned locktype) argument
|
H A D | evthread_win32.c | 54 evthread_win32_lock_create(unsigned locktype) argument 67 evthread_win32_lock_free(void *lock_, unsigned locktype) argument
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/ |
H A D | evthread.c | 167 unsigned locktype; member in struct:debug_lock 176 debug_lock_alloc(unsigned locktype) argument 183 locktype|EVTHREAD_LOCKTYPE_RECURSIVE))) { 191 result->locktype = locktype; 198 debug_lock_free(void *lock_, unsigned locktype) argument 202 EVUTIL_ASSERT(locktype == lock->locktype); 206 lock->locktype|EVTHREAD_LOCKTYPE_RECURSIVE); 219 if (!(lock->locktype 347 evthread_setup_global_lock_(void *lock_, unsigned locktype, int enable_locks) argument 409 evthreadimpl_lock_alloc_(unsigned locktype) argument 415 evthreadimpl_lock_free_(void *lock, unsigned locktype) argument [all...] |
H A D | evthread-internal.h | 79 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ 81 evthread_lock_fns_.alloc(locktype) : NULL) 84 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ 88 evthread_lock_fns_.free(lock_tmp_, (locktype)); \ 188 void *evthreadimpl_lock_alloc_(unsigned locktype); 189 void evthreadimpl_lock_free_(void *lock, unsigned locktype); 205 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ 206 ((lockvar) = evthreadimpl_lock_alloc_(locktype)) 208 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ 212 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \ [all...] |
H A D | evthread_pthread.c | 47 evthread_posix_lock_alloc(unsigned locktype) argument 53 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE) 63 evthread_posix_lock_free(void *lock_, unsigned locktype) argument
|
H A D | evthread_win32.c | 53 evthread_win32_lock_create(unsigned locktype) argument 66 evthread_win32_lock_free(void *lock_, unsigned locktype) argument
|
/netbsd-current/external/bsd/libevent/dist/include/event2/ |
H A D | thread.h | 108 /** Function to allocate and initialize new lock of type 'locktype'. 110 void *(*alloc)(unsigned locktype); 112 * with type 'locktype'. */ 113 void (*free)(void *lock, unsigned locktype);
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/include/event2/ |
H A D | thread.h | 109 /** Function to allocate and initialize new lock of type 'locktype'. 111 void *(*alloc)(unsigned locktype); 113 * with type 'locktype'. */ 114 void (*free)(void *lock, unsigned locktype);
|
/netbsd-current/external/bsd/openldap/dist/servers/lloadd/ |
H A D | libevent_support.c | 33 lload_libevent_mutex_init( unsigned locktype ) 39 if ( locktype & EVTHREAD_LOCKTYPE_RECURSIVE ) { 52 lload_libevent_mutex_destroy( void *lock, unsigned locktype )
|
/netbsd-current/external/gpl2/xcvs/dist/src/ |
H A D | recurse.c | 44 int locktype; member in struct:recursion_frame 125 * locktype 161 int which, int aflag, int locktype, 177 " locktype=%d, update_preload=%s\n" 182 local, which, aflag, locktype, 191 " locktype=%d, update_preload=%s\n" 196 local, which, aflag, locktype, 209 frame.locktype = locktype; 611 int locktype; local 158 start_recursion(FILEPROC fileproc, FILESDONEPROC filesdoneproc, DIRENTPROC direntproc, DIRLEAVEPROC dirleaveproc, void *callerdat, int argc, char **argv, int local, int which, int aflag, int locktype, char *update_preload, int dosrcs, char *repository_in) argument [all...] |
H A D | cvs.h | 690 int aflag, int locktype, char *update_preload,
|
/netbsd-current/sys/fs/nfs/common/ |
H A D | nfs_fha.h | 83 int locktype; member in struct:fha_info
|
H A D | nfs_fha.c | 148 i->locktype = LK_EXCLUSIVE; 279 fha_hash_entry_add_op(struct fha_hash_entry *fhe, int locktype, int count) argument 283 if (LK_EXCLUSIVE == locktype) 412 req->rq_p2 = i.locktype; 421 fha_hash_entry_add_op(fhe, i.locktype, 1);
|
/netbsd-current/external/gpl2/lvm2/dist/daemons/clvmd/ |
H A D | clvmd-command.c | 95 const char *locktype; local 154 if ((locktype = do_lock_query(lockname))) 155 *retlen = 1 + snprintf(*buf, buflen, "%s", locktype);
|
/netbsd-current/external/mpl/bind/dist/lib/dns/ |
H A D | rbtdb.c | 1834 isc_rwlocktype_t locktype) { 1835 if (locktype == isc_rwlocktype_write && ISC_LINK_LINKED(node, deadlink)) 1862 isc_rwlocktype_t locktype) { 1865 INSIST(locktype == isc_rwlocktype_write); 1867 new_reference(rbtdb, node, locktype); 1948 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 1952 POST(locktype); 1954 NODE_LOCK(nodelock, locktype); 1970 NODE_UNLOCK(nodelock, locktype); 1971 locktype 1833 new_reference(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, isc_rwlocktype_t locktype) argument 1861 send_to_prune_tree(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, isc_rwlocktype_t locktype) argument 2818 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 3053 bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, rdatasetheader_t *header, isc_stdtime_t now, isc_rwlocktype_t locktype, dns_rdataset_t *rdataset) argument 4542 check_stale_header(dns_rbtnode_t *node, rdatasetheader_t *header, isc_rwlocktype_t *locktype, nodelock_t *lock, rbtdb_search_t *search, rdatasetheader_t **header_prev) argument 4658 isc_rwlocktype_t locktype; local 4736 isc_rwlocktype_t locktype; local 4883 isc_rwlocktype_t locktype; local 4997 isc_rwlocktype_t locktype; local 5401 isc_rwlocktype_t locktype; local 5929 isc_rwlocktype_t locktype; local [all...] |
H A D | nta.c | 441 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 453 RWLOCK(&ntatable->rwlock, locktype); 472 if (locktype == isc_rwlocktype_read) { 473 RWUNLOCK(&ntatable->rwlock, locktype); 474 locktype = isc_rwlocktype_write; 499 RWUNLOCK(&ntatable->rwlock, locktype);
|
H A D | tsig.c | 1763 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 1778 RWLOCK(&ring->lock, locktype); 1782 RWUNLOCK(&ring->lock, locktype); 1786 RWUNLOCK(&ring->lock, locktype); 1793 if (locktype == isc_rwlocktype_read) { 1794 RWUNLOCK(&ring->lock, locktype); 1795 locktype = isc_rwlocktype_write; 1799 RWUNLOCK(&ring->lock, locktype); 1814 RWUNLOCK(&ring->lock, locktype);
|
/netbsd-current/usr.sbin/lockstat/ |
H A D | main.c | 169 int eventtype, locktype, ch, nlfd, fd; local 184 locktype = -1; 206 locktype = matchname(locknames, optarg); 308 le.le_mask = (eventtype & LB_EVENT_MASK) | (locktype & LB_LOCK_MASK); 392 if (locktype != -1 && 393 (name->mask & LB_LOCK_MASK) != locktype)
|
/netbsd-current/external/mpl/dhcp/bind/dist/lib/dns/ |
H A D | rbtdb.c | 1927 isc_rwlocktype_t locktype) { 1928 if (locktype == isc_rwlocktype_write && ISC_LINK_LINKED(node, deadlink)) 1955 isc_rwlocktype_t locktype) { 1958 INSIST(locktype == isc_rwlocktype_write); 1960 new_reference(rbtdb, node, locktype); 2041 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 2045 POST(locktype); 2047 NODE_LOCK(nodelock, locktype); 2063 NODE_UNLOCK(nodelock, locktype); 2064 locktype 1926 new_reference(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, isc_rwlocktype_t locktype) argument 1954 send_to_prune_tree(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, isc_rwlocktype_t locktype) argument 2911 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 3146 bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, rdatasetheader_t *header, isc_stdtime_t now, isc_rwlocktype_t locktype, dns_rdataset_t *rdataset) argument 4629 check_stale_header(dns_rbtnode_t *node, rdatasetheader_t *header, isc_rwlocktype_t *locktype, nodelock_t *lock, rbtdb_search_t *search, rdatasetheader_t **header_prev) argument 4745 isc_rwlocktype_t locktype; local 4823 isc_rwlocktype_t locktype; local 4965 isc_rwlocktype_t locktype; local 5056 isc_rwlocktype_t locktype; local 5419 isc_rwlocktype_t locktype; local 5947 isc_rwlocktype_t locktype; local [all...] |
H A D | nta.c | 441 isc_rwlocktype_t locktype = isc_rwlocktype_read; local 453 RWLOCK(&ntatable->rwlock, locktype); 472 if (locktype == isc_rwlocktype_read) { 473 RWUNLOCK(&ntatable->rwlock, locktype); 474 locktype = isc_rwlocktype_write; 499 RWUNLOCK(&ntatable->rwlock, locktype);
|
/netbsd-current/sys/fs/nfs/server/ |
H A D | nfs_fha_new.c | 246 info->locktype = LK_SHARED; 262 info->locktype = LK_EXCLUSIVE;
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | regress_bufferevent.c | 236 static void *trace_lock_alloc(unsigned locktype) argument 241 void *lock = lu_base.cbs.alloc(locktype); 245 static void trace_lock_free(void *lock_, unsigned locktype) argument 253 lu_base.cbs.free(lock_, locktype);
|
/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | regress_bufferevent.c | 258 static void *trace_lock_alloc(unsigned locktype) argument 264 lock = lu_base.cbs.alloc(locktype); 268 static void trace_lock_free(void *lock_, unsigned locktype) argument 275 lu_base.cbs.free(lock_, locktype);
|