/freebsd/crypto/krb5/src/ccapi/server/ |
H A D | ccs_lock_state.c | 32 ccs_lock_array_t locks; member 60 err = ccs_lock_array_new (&lock_state->locks); in ccs_lock_state_new() 84 ccs_lock_array_release (io_lock_state->locks); in ccs_lock_state_release() 118 err = ccs_lock_array_insert (io_lock_state->locks, lock, in ccs_lock_status_add_pending_lock() 119 ccs_lock_array_count (io_lock_state->locks)); in ccs_lock_status_add_pending_lock() 124 *out_lock_index = ccs_lock_array_count (io_lock_state->locks) - 1; in ccs_lock_status_add_pending_lock() 142 err = ccs_lock_array_remove (io_lock_state->locks, in_lock_index); in ccs_lock_status_remove_lock() 164 pending_lock = ccs_lock_array_object_at_index (io_lock_state->locks, in ccs_lock_status_grant_lock() 185 ccs_lock_t lock = ccs_lock_array_object_at_index (io_lock_state->locks, i); in ccs_lock_status_grant_lock() 204 err = ccs_lock_array_move (io_lock_state->locks, in ccs_lock_status_grant_lock() [all …]
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld_lock.c | 393 void *locks[RTLD_LOCK_CNT]; in _rtld_thread_init() local 420 if ((locks[i] = pli->lock_create()) == NULL) in _rtld_thread_init() 425 pli->lock_destroy(locks[i]); in _rtld_thread_init() 438 rtld_locks[i].handle = locks[i]; in _rtld_thread_init() 466 _rtld_atfork_pre(int *locks) in _rtld_atfork_pre() argument 470 if (locks == NULL) in _rtld_atfork_pre() 487 locks[0] = ls[1].lockstate; in _rtld_atfork_pre() 488 locks[2] = ls[0].lockstate; in _rtld_atfork_pre() 492 _rtld_atfork_post(int *locks) in _rtld_atfork_post() argument 496 if (locks == NULL) in _rtld_atfork_post() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | pthread8.sh | 55 pthread_mutex_t *locks; 72 l = &ra->locks[i]; 79 l = &ra->locks[i]; 109 ra.locks = calloc(ra.lock_cnt, sizeof(pthread_mutex_t)); 110 if (ra.locks == NULL) 119 error = pthread_mutex_init(&ra.locks[i], &mattr);
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | rrwlock.c | 330 rrw_init(&rrl->locks[i], track_all); in rrm_init() 339 rrw_destroy(&rrl->locks[i]); in rrm_destroy() 364 rrw_enter_read(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_enter_read() 373 rrw_enter_write(&rrl->locks[i]); in rrm_enter_write() 381 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit() 383 rrw_exit(&rrl->locks[i], tag); in rrm_exit() 385 rrw_exit(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_exit() 393 return (rrw_held(&rrl->locks[0], rw)); in rrm_held() 395 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
|
H A D | spa_misc.c | 481 spa_config_tryenter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_tryenter() argument 485 if (!(locks & (1 << i))) in spa_config_tryenter() 491 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter() 499 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter() 512 spa_config_enter_impl(spa_t *spa, int locks, const void *tag, krw_t rw, in spa_config_enter_impl() argument 524 if (!(locks & (1 << i))) in spa_config_enter_impl() 544 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter_impl() 548 spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter() argument 550 spa_config_enter_impl(spa, locks, tag, rw, 0); in spa_config_enter() 563 spa_config_enter_mmp(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter_mmp() argument [all …]
|
/freebsd/sys/compat/linux/ |
H A D | check_internal_locks.d | 45 linuxulator*:locks:futex_mtx:locked 53 linuxulator*:locks:futex_mtx:locked 62 linuxulator*:locks:futex_mtx:unlock 72 linuxulator*:locks:futex_mtx:unlock
|
H A D | trace_futexes.d | 107 linuxulator*:locks:futex_mtx:locked 118 linuxulator*:locks:futex_mtx:unlock 128 linuxulator*:locks:futex_mtx:unlock
|
/freebsd/contrib/unbound/ |
H A D | Makefile.in | 129 util/fptr_wlist.c util/locks.c util/log.c util/mini_event.c util/module.c \ 148 fptr_wlist.lo siphash.lo edns.lo locks.lo log.lo mini_event.lo module.lo net_help.lo \ 236 ASYNCLOOK_OBJ_LINK=$(ASYNCLOOK_OBJ) log.lo locks.lo $(CHECKLOCK_OBJ) $(COMPAT_OBJ) @ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ@ 450 $(srcdir)/util/locks.h 479 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 724 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 731 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storage/dnstree.h \ 739 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storage/slabhash.h \ 745 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/msgparse.h \ 748 $(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks [all...] |
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | atomic.c | 67 static Lock locks[SPINLOCK_COUNT]; variable 93 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}}; variable 102 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable 121 static Lock locks[SPINLOCK_COUNT]; variable 138 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
|
/freebsd/contrib/googletest/googletest/include/gtest/internal/custom/ |
H A D | README.md | 30 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)` 31 * `GTEST_LOCK_EXCLUDED_(locks)`
|
/freebsd/crypto/openssl/doc/internal/man3/ |
H A D | ossl_rcu_lock_new.pod | 38 In addition to more traditional Read/Write locks, OpenSSL provides 39 Read-Copy-Update (RCU) locks, which allow for always nonblocking read paths. 84 the lock. Note only one writer per lock is permitted, as with read/write locks. 106 ossl_rcu_deref(p) atomically reads a pointer under an RCU locks 112 RCU locks protection
|
/freebsd/sys/kern/ |
H A D | kern_lockf.c | 1861 struct lockdesclist locks; in lf_iteratelocks_sysid() local 1872 STAILQ_INIT(&locks); in lf_iteratelocks_sysid() 1894 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_sysid() 1906 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_sysid() 1907 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_sysid() 1923 struct lockdesclist locks; in lf_iteratelocks_vnode() local 1934 STAILQ_INIT(&locks); in lf_iteratelocks_vnode() 1961 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_vnode() 1976 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_vnode() 1977 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_vnode() [all …]
|
H A D | subr_epoch.c | 709 int locks __unused; in epoch_wait_preempt() 715 locks = curthread->td_locks; in epoch_wait_preempt() 753 KASSERT(td->td_locks == locks, in epoch_wait_preempt() 754 ("%d residual locks held", td->td_locks - locks)); in epoch_wait_preempt()
|
/freebsd/sbin/ddb/ |
H A D | ddb.conf | 8 script lockinfo=show locks; show alllocks; show lockedvnods
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | CRYPTO_THREAD_run_once.pod | 66 In particular, this can be used to allocate locks in a thread-safe manner, 76 CRYPTO_THREAD_read_lock() locks the provided I<lock> for reading. 80 CRYPTO_THREAD_write_lock() locks the provided I<lock> for writing. 258 Finalization of locks is an advanced topic, not covered in this example. 262 repeatedly load/unload shared libraries that allocate locks.
|
H A D | X509_STORE_new.pod | 26 X509_STORE_lock() locks the store from modification by other threads,
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_bufferevent.c | 237 lock_wrapper *locks; member 240 .locks = NULL, 247 lock_wrapper *lock = &lu_base.locks[i]; in lu_find() 258 lu_base.locks = realloc(lu_base.locks, in trace_lock_alloc() 261 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; in trace_lock_alloc() 340 free(lu_base.locks); in free_lock_unlock_profiler()
|
/freebsd/contrib/libevent/test/ |
H A D | regress_bufferevent.c | 237 lock_wrapper *locks; member 240 .locks = NULL, 247 lock_wrapper *lock = &lu_base.locks[i]; in lu_find() 258 lu_base.locks = realloc(lu_base.locks, in trace_lock_alloc() 261 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; in trace_lock_alloc() 340 free(lu_base.locks); in free_lock_unlock_profiler()
|
/freebsd/lib/libc/gen/ |
H A D | dlfcn.c | 267 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre() 273 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | mutex.cppm |
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | rrwlock.h | 98 rrwlock_t locks[RRM_NUM_LOCKS]; member
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | Makefile | 34 GTESTS+= locks
|
/freebsd/contrib/unbound/contrib/ |
H A D | unbound-fuzzme.patch | 91 + $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \ 100 $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | PathMappingList.cpp | 51 std::scoped_lock<std::recursive_mutex, std::recursive_mutex> locks(m_mutex, rhs.m_mutex); in operator =() local 72 std::scoped_lock<std::recursive_mutex, std::recursive_mutex> locks(m_mutex, rhs.m_mutex); in Append() local
|
/freebsd/lib/libunbound/ |
H A D | Makefile | 21 listen_dnsport.c localzone.c locks.c log.c lookup3.c lruhash.c \
|