Home
last modified time | relevance | path

Searched refs:locks (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd-14.2/libexec/rtld-elf/
H A Drtld_lock.c387 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()
481 locks[0] = ls[1].lockstate; in _rtld_atfork_pre()
482 locks[2] = ls[0].lockstate; in _rtld_atfork_pre()
486 _rtld_atfork_post(int *locks) in _rtld_atfork_post() argument
490 if (locks == NULL) in _rtld_atfork_post()
494 ls[0].lockstate = locks[2]; in _rtld_atfork_post()
[all …]
/freebsd-14.2/tools/test/stress2/misc/
H A Dpthread8.sh55 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-14.2/sys/compat/linux/
H A Dcheck_internal_locks.d45 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 Dtrace_futexes.d107 linuxulator*:locks:futex_mtx:locked
118 linuxulator*:locks:futex_mtx:unlock
128 linuxulator*:locks:futex_mtx:unlock
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
H A Drrwlock.c329 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 Dspa_misc.c473 if (!(locks & (1 << i))) in spa_config_tryenter()
512 if (!(locks & (1 << i))) in spa_config_enter_impl()
532 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter_impl()
538 spa_config_enter_impl(spa, locks, tag, rw, 0); in spa_config_enter()
553 spa_config_enter_impl(spa, locks, tag, rw, 1); in spa_config_enter_mmp()
562 if (!(locks & (1 << i))) in spa_config_exit()
583 if (!(locks & (1 << i))) in spa_config_held()
1348 int locks = SCL_STATE_ALL | oplocks; in spa_vdev_state_enter() local
1360 int low = locks & ~(SCL_ZIO - 1); in spa_vdev_state_enter()
1361 int high = locks & ~low; in spa_vdev_state_enter()
[all …]
/freebsd-14.2/contrib/unbound/
H A DMakefile.in129 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 \
450 $(srcdir)/util/locks.h
479 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
802 $(srcdir)/util/data/dname.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
976 locks.lo locks.o: $(srcdir)/util/locks.c config.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
980 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
1043 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
1221 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h \
1326 $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \
[all …]
/freebsd-14.2/contrib/googletest/googletest/include/gtest/internal/custom/
H A DREADME.md30 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
31 * `GTEST_LOCK_EXCLUDED_(locks)`
/freebsd-14.2/crypto/openssl/doc/man3/
H A DCRYPTO_THREAD_run_once.pod49 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.
178 Finalization of locks is an advanced topic, not covered in this example.
182 repeatedly load/unload shared libraries that allocate locks.
H A DX509_STORE_new.pod26 X509_STORE_lock() locks the store from modification by other threads,
H A DOPENSSL_LH_stats.pod53 L<OPENSSL_LH_COMPFUNC(3)/NOTE> for more details about the locks required
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/builtins/
H A Datomic.c83 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-14.2/sys/kern/
H A Dkern_lockf.c1863 struct lockdesclist locks; in lf_iteratelocks_sysid() local
1874 STAILQ_INIT(&locks); in lf_iteratelocks_sysid()
1909 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_sysid()
1925 struct lockdesclist locks; in lf_iteratelocks_vnode() local
1936 STAILQ_INIT(&locks); in lf_iteratelocks_vnode()
1963 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_vnode()
1979 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_vnode()
2479 STAILQ_HEAD(, kinfo_lockf_linked) locks; in vfs_report_lockf()
2482 STAILQ_INIT(&locks); in vfs_report_lockf()
2513 STAILQ_INSERT_TAIL(&locks, klf, link); in vfs_report_lockf()
[all …]
H A Dsubr_epoch.c710 int locks __unused; in epoch_wait_preempt()
716 locks = curthread->td_locks; in epoch_wait_preempt()
754 KASSERT(td->td_locks == locks, in epoch_wait_preempt()
755 ("%d residual locks held", td->td_locks - locks)); in epoch_wait_preempt()
/freebsd-14.2/sbin/ddb/
H A Dddb.conf8 script lockinfo=show locks; show alllocks; show lockedvnods
/freebsd-14.2/lib/libc/gen/
H A Ddlfcn.c248 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre()
254 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
/freebsd-14.2/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c237 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-14.2/contrib/libevent/test/
H A Dregress_bufferevent.c237 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-14.2/contrib/llvm-project/libcxx/modules/std/
H A Dmutex.inc29 // [thread.lock], locks
/freebsd-14.2/sys/contrib/openzfs/include/sys/
H A Drrwlock.h97 rrwlock_t locks[RRM_NUM_LOCKS]; member
H A Dspa.h975 extern int spa_config_tryenter(spa_t *spa, int locks, const void *tag,
977 extern void spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw);
978 extern void spa_config_enter_mmp(spa_t *spa, int locks, const void *tag,
980 extern void spa_config_exit(spa_t *spa, int locks, const void *tag);
981 extern int spa_config_held(spa_t *spa, int locks, krw_t rw);
/freebsd-14.2/tests/sys/fs/fusefs/
H A DMakefile33 GTESTS+= locks
/freebsd-14.2/lib/libunbound/
H A DMakefile22 listen_dnsport.c localzone.c locks.c log.c lookup3.c lruhash.c \
/freebsd-14.2/contrib/llvm-project/lldb/source/Target/
H A DPathMappingList.cpp51 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-14.2/contrib/unbound/contrib/
H A Dunbound-fuzzme.patch91 + $(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 \

1234