| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| tls.c | 43 static isc_mutex_t *locks = NULL; variable 51 LOCK(&locks[type]); 53 UNLOCK(&locks[type]); 86 locks = calloc(nlocks, sizeof(locks[0])); 87 isc_mutexblock_init(locks, nlocks); 147 if (locks != NULL) { 148 isc_mutexblock_destroy(locks, nlocks); 149 free(locks); 150 locks = NULL [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| rrwlock.h | 84 * A reader-mostly lock implementation, tuning above reader-writer locks 92 rrwlock_t locks[RRM_NUM_LOCKS]; member in struct:rrmlock
|
| /src/sys/external/bsd/compiler_rt/dist/lib/builtins/ |
| atomic.c | 11 * arbitrary-sized memory locations. This design uses locks that should 21 * locks and hashes the object pointers to find the one that it should use. 40 /// Number of locks. This allocates one page on 32-bit platforms, two on 73 /// locks for atomic operations 74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} }; variable 82 /// Locks a lock. In the current implementation, this is potentially 87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable 95 /// Locks a lock. In the current implementation, this is potentially 103 /// locks for atomic operations 104 static Lock locks[SPINLOCK_COUNT] variable [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| sanitizer_deadlock_detector_test.cc | 165 set<uptr> locks; local 166 locks.insert(l0); 167 locks.insert(l1); 168 locks.insert(l2); 169 locks.insert(l3); 170 locks.insert(l4); 171 locks.insert(l5); 174 locks.insert(lt); 179 EXPECT_EQ(locks.size(), d.size()); 195 locks.clear() 249 set<uptr> locks; local [all...] |
| /src/external/gpl2/xcvs/dist/src/ |
| rcs.h | 101 called, we parse these into ->locks, and free ->locks_data. */ 106 List *locks; member in struct:rcsnode
|
| rcs.c | 507 if (STREQ (key, "locks")) 514 "Duplicate `locks' keyword found in RCS file."); 952 if (rnode->locks != NULL) 953 dellist (&rnode->locks); 2068 * process the locks list of the rcs file 3197 rcs->locks = getlist (); 3198 do_locks (rcs->locks, rcs->locks_data); 3203 return rcs->locks; 5286 /* Figure out where the commit point is by looking for locks. 5943 List *locks; local 6037 List *locks; local [all...] |
| /src/external/gpl2/rcs/dist/src/ |
| co.c | 94 * Permit multiple locks by same user. Add setuid support. 395 int locks = lockflag ? findlock(false, &targetdelta) : 0; variable 401 switch (locks) { 473 locks += lockflag; 474 if (1 < locks) 475 rcswarn("You now have %d locks.", locks); 588 dummy.nextlock=next=Locks; 607 Locks=dummy.nextlock;
|
| /src/sys/arch/x86/x86/ |
| intr.c | 675 int locks; local 679 locks = curcpu()->ci_biglock_count; 686 KASSERTMSG(locks == curcpu()->ci_biglock_count, 687 "%s @ %p slipped locks %d -> %d", 688 ih->ih_xname, ih->ih_realfun, locks, curcpu()->ci_biglock_count);
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/ |
| request.c | 66 isc_mutex_t locks[DNS_REQUEST_NLOCKS]; member in struct:dns_requestmgr 177 isc_mutex_init(&requestmgr->locks[i]); 395 isc_mutex_destroy(&requestmgr->locks[i]); 1171 LOCK(&request->requestmgr->locks[request->hash]); 1177 UNLOCK(&request->requestmgr->locks[request->hash]); 1188 LOCK(&request->requestmgr->locks[request->hash]); 1194 UNLOCK(&request->requestmgr->locks[request->hash]); 1252 LOCK(&request->requestmgr->locks[request->hash]); 1256 UNLOCK(&request->requestmgr->locks[request->hash]); 1306 LOCK(&request->requestmgr->locks[request->hash]) [all...] |
| /src/external/mpl/bind/dist/lib/isc/ |
| tls.c | 61 static isc_mutex_t *locks = NULL; variable 69 LOCK(&locks[type]); 71 UNLOCK(&locks[type]); 101 locks = isc_mem_cget(isc__tls_mctx, nlocks, sizeof(locks[0])); 102 isc_mutexblock_init(locks, nlocks); 148 if (locks != NULL) { 149 isc_mutexblock_destroy(locks, nlocks); 150 isc_mem_cput(isc__tls_mctx, locks, nlocks, sizeof(locks[0])) [all...] |
| /src/external/bsd/libevent/dist/test/ |
| regress_bufferevent.c | 225 * Trace lock/unlock/alloc/free for locks. 240 /* Map of locks */ 241 lock_wrapper *locks; member in struct:lock_unlock_base 244 .locks = NULL, 251 lock_wrapper *lock = &lu_base.locks[i]; 262 lu_base.locks = realloc(lu_base.locks, 265 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; 331 /** re-create debug locks correctly */ 344 free(lu_base.locks); [all...] |
| /src/external/bsd/ntp/dist/sntp/libevent/test/ |
| regress_bufferevent.c | 223 * Trace lock/unlock/alloc/free for locks. 238 /* Map of locks */ 239 lock_wrapper *locks; member in struct:lock_unlock_base 242 .locks = NULL, 249 lock_wrapper *lock = &lu_base.locks[i]; 260 lu_base.locks = realloc(lu_base.locks, 263 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; 329 /** re-create debug locks correctly */ 342 free(lu_base.locks); [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| spa_misc.c | 70 * There are four basic locks for managing spa_t structures: 160 * To read the configuration, it suffices to hold one of these locks as reader. 161 * To modify the configuration, you must hold all locks as writer. To modify 165 * We use these distinct config locks to avoid recursive lock entry. 170 * The spa config locks cannot be normal rwlocks because we need the 207 * other locks, and lower than all of them, to ensure that it's safe 502 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) 506 if (!(locks & (1 << i))) 512 spa_config_exit(spa, locks & ((1 << i) - 1), 520 spa_config_exit(spa, locks & ((1 << i) - 1) 1357 int locks = SCL_STATE_ALL | oplocks; local [all...] |
| /src/sys/arch/alpha/alpha/ |
| pmap.c | 323 * READ/WRITE LOCKS 340 * * pmap lock (global hash) - These locks protect the pmap structures. 342 * * pmap activation lock (global hash) - These IPL_SCHED spin locks 348 * * pvh_lock (global hash) - These locks protect the PV lists for 361 * pmap_growkernel() acquires the locks in the following order: 406 } locks; member in union:__anon53 416 return &pmap_pmap_locks[PMAP_LOCK_HASH(pmap)].locks.lock; 422 return &pmap_pmap_locks[PMAP_LOCK_HASH(pmap)].locks.activation_lock; 1404 * Initialize the locks. 1412 mutex_init(&pmap_pmap_locks[i].locks.lock [all...] |