/freebsd/libexec/rtld-elf/ |
H A D | rtld_lock.c | 387 void *locks[RTLD_LOCK_CNT]; in _rtld_thread_init() local 419 pli->lock_destroy(locks[i]); in _rtld_thread_init() 432 rtld_locks[i].handle = locks[i]; in _rtld_thread_init() 460 _rtld_atfork_pre(int *locks) in _rtld_atfork_pre() argument 464 if (locks == NULL) in _rtld_atfork_pre() 479 locks[0] = ls[1].lockstate; in _rtld_atfork_pre() 480 locks[2] = ls[0].lockstate; in _rtld_atfork_pre() 484 _rtld_atfork_post(int *locks) in _rtld_atfork_post() argument 488 if (locks == NULL) in _rtld_atfork_post() 492 ls[0].lockstate = locks[2]; 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/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/sys/contrib/openzfs/module/zfs/ |
H A D | rrwlock.c | 329 rrw_init(&rrl->locks[i], track_all); in rrm_init() 338 rrw_destroy(&rrl->locks[i]); in rrm_destroy() 363 rrw_enter_read(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_enter_read() 372 rrw_enter_write(&rrl->locks[i]); in rrm_enter_write() 380 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit() 382 rrw_exit(&rrl->locks[i], tag); in rrm_exit() 384 rrw_exit(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_exit() 392 return (rrw_held(&rrl->locks[0], rw)); in rrm_held() 394 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
|
H A D | spa_misc.c | 484 if (!(locks & (1 << i))) in spa_config_tryenter() 523 if (!(locks & (1 << i))) in spa_config_enter_impl() 543 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter_impl() 549 spa_config_enter_impl(spa, locks, tag, rw, 0); in spa_config_enter() 564 spa_config_enter_impl(spa, locks, tag, rw, 1); in spa_config_enter_mmp() 573 if (!(locks & (1 << i))) in spa_config_exit() 594 if (!(locks & (1 << i))) in spa_config_held() 1399 int locks = SCL_STATE_ALL | oplocks; in spa_vdev_state_enter() local 1411 int low = locks & ~(SCL_ZIO - 1); in spa_vdev_state_enter() 1412 int high = locks & ~low; in spa_vdev_state_enter() [all …]
|
/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 \ 471 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 792 $(srcdir)/util/data/dname.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 797 $(srcdir)/services/cache/dns.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 966 locks.lo locks.o: $(srcdir)/util/locks.c config.h $(srcdir)/util/locks.h $(srcdir)/util/log.h 970 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 1033 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h 1211 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h \ 1316 $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \ [all …]
|
/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/man3/ |
H A D | CRYPTO_THREAD_run_once.pod | 49 In particular, this can be used to allocate locks in a thread-safe manner, 59 CRYPTO_THREAD_read_lock() locks the provided I<lock> for reading. 63 CRYPTO_THREAD_write_lock() locks the provided I<lock> for writing. 174 Finalization of locks is an advanced topic, not covered in this example. 178 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,
|
H A D | OPENSSL_LH_stats.pod | 53 L<OPENSSL_LH_COMPFUNC(3)/NOTE> for more details about the locks required
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | atomic.c | 83 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}}; variable 92 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable 111 static Lock locks[SPINLOCK_COUNT]; variable 128 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
|
/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() 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() 1977 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_vnode() 2477 STAILQ_HEAD(, kinfo_lockf_linked) locks; in vfs_report_lockf() 2480 STAILQ_INIT(&locks); in vfs_report_lockf() 2511 STAILQ_INSERT_TAIL(&locks, klf, link); in vfs_report_lockf() [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/lib/libc/gen/ |
H A D | dlfcn.c | 248 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre() 254 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
|
/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/contrib/llvm-project/libcxx/modules/std/ |
H A D | mutex.inc | 29 // [thread.lock], locks
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | rrwlock.h | 97 rrwlock_t locks[RRM_NUM_LOCKS]; member
|
H A D | spa.h | 985 extern int spa_config_tryenter(spa_t *spa, int locks, const void *tag, 987 extern void spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw); 988 extern void spa_config_enter_mmp(spa_t *spa, int locks, const void *tag, 990 extern void spa_config_exit(spa_t *spa, int locks, const void *tag); 991 extern int spa_config_held(spa_t *spa, int locks, krw_t rw);
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | Makefile | 33 GTESTS+= locks
|
/freebsd/lib/libunbound/ |
H A D | Makefile | 22 listen_dnsport.c localzone.c locks.c log.c lookup3.c lruhash.c \
|
/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
|