Home
last modified time | relevance | path

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

1234

/freebsd/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/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/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.c480 spa_config_tryenter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_tryenter() argument
484 if (!(locks & (1 << i))) in spa_config_tryenter()
490 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
498 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
511 spa_config_enter_impl(spa_t *spa, int locks, const void *tag, krw_t rw, in spa_config_enter_impl() argument
523 if (!(locks & (1 << i))) in spa_config_enter_impl()
543 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter_impl()
547 spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter() argument
549 spa_config_enter_impl(spa, locks, tag, rw, 0); in spa_config_enter()
562 spa_config_enter_mmp(spa_t *spa, int locks, const void *tag, krw_t rw) in spa_config_enter_mmp() argument
[all …]
/freebsd/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 \
236 ASYNCLOOK_OBJ_LINK=$(ASYNCLOOK_OBJ) log.lo locks.lo $(CHECKLOCK_OBJ) $(COMPAT_OBJ) @ASYNCLOOK_ALLOC…
450 $(srcdir)/util/locks.h
479 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
719 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
726 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag…
734 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag…
740 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/m…
743 …$(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/u…
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Datomic.c67 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 DREADME.md30 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
31 * `GTEST_LOCK_EXCLUDED_(locks)`
/freebsd/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/sys/kern/
H A Dkern_lockf.c1861 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 Dsubr_epoch.c709 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 Dddb.conf8 script lockinfo=show locks; show alllocks; show lockedvnods
/freebsd/lib/libc/gen/
H A Ddlfcn.c267 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre()
273 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
/freebsd/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/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/contrib/llvm-project/libcxx/modules/std/
H A Dmutex.cppm
/freebsd/sys/contrib/openzfs/include/sys/
H A Drrwlock.h97 rrwlock_t locks[RRM_NUM_LOCKS]; member
H A Dspa.h1001 extern int spa_config_tryenter(spa_t *spa, int locks, const void *tag,
1003 extern void spa_config_enter(spa_t *spa, int locks, const void *tag, krw_t rw);
1004 extern void spa_config_enter_mmp(spa_t *spa, int locks, const void *tag,
1006 extern void spa_config_exit(spa_t *spa, int locks, const void *tag);
1007 extern int spa_config_held(spa_t *spa, int locks, krw_t rw);
/freebsd/tests/sys/fs/fusefs/
H A DMakefile32 GTESTS+= locks
/freebsd/lib/libunbound/
H A DMakefile21 listen_dnsport.c localzone.c locks.c log.c lookup3.c lruhash.c \
/freebsd/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 \
/freebsd/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/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dproperties.shlib84 # Newer Linuxes dropped non-blocking mandatory locks

1234