Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/subversion/subversion/libsvn_client/
H A Dlist.c118 apr_hash_t *locks, in get_dir_contents() argument
158 if (locks && apr_hash_count(locks) == 0) in get_dir_contents()
159 locks = NULL; in get_dir_contents()
192 if (locks) in get_dir_contents()
234 apr_hash_t *locks; member
254 if (b->locks) in list_receiver()
327 apr_hash_t *locks; in list_internal() local
358 locks = NULL; in list_internal()
364 locks = NULL; in list_internal()
373 receiver_baton.locks = locks; in list_internal()
[all …]
H A Dinfo.c192 apr_hash_t *locks, in push_dir_info() argument
220 lock = svn_hash_gets(locks, fs_path); in push_dir_info()
235 depth, ctx, locks, subpool)); in push_dir_info()
438 apr_hash_t *locks; in svn_client_info4() local
442 err = svn_ra_get_locks2(ra_session, &locks, "", depth, in svn_client_info4()
449 locks = apr_hash_make(pool); /* use an empty hash */ in svn_client_info4()
455 locks = apr_hash_make(pool); /* use an empty hash */ in svn_client_info4()
459 depth, ctx, locks, pool)); in svn_client_info4()
H A Dstatus.c190 apr_hash_t *locks; in reporter_finish_report() local
203 err = svn_ra_get_locks2(ras, &locks, "", rb->depth, rb->pool); in reporter_finish_report()
208 locks = apr_hash_make(rb->pool); in reporter_finish_report()
217 SVN_ERR(svn_wc_status_set_repos_locks(rb->set_locks_baton, locks, in reporter_finish_report()
/freebsd-13.1/contrib/subversion/subversion/libsvn_fs_base/bdb/
H A Dlocks-table.c52 DB *locks; in svn_fs_bdb__open_locks_table() local
56 BDB_ERR(db_create(&locks, env, 0)); in svn_fs_bdb__open_locks_table()
57 error = (locks->open)(SVN_BDB_OPEN_PARAMS(locks, NULL), in svn_fs_bdb__open_locks_table()
65 BDB_ERR(locks->close(locks, 0)); in svn_fs_bdb__open_locks_table()
70 *locks_p = locks; in svn_fs_bdb__open_locks_table()
94 bfd->locks->put(bfd->locks, trail->db_txn, in svn_fs_bdb__lock_add()
112 db_err = bfd->locks->del(bfd->locks, trail->db_txn, &key, 0); in svn_fs_bdb__lock_delete()
135 db_err = bfd->locks->get(bfd->locks, trail->db_txn, in svn_fs_bdb__lock_get()
/freebsd-13.1/libexec/rtld-elf/
H A Drtld_lock.c375 void *locks[RTLD_LOCK_CNT]; in _rtld_thread_init() local
407 pli->lock_destroy(locks[i]); in _rtld_thread_init()
420 rtld_locks[i].handle = locks[i]; in _rtld_thread_init()
448 _rtld_atfork_pre(int *locks) in _rtld_atfork_pre() argument
452 if (locks == NULL) in _rtld_atfork_pre()
467 locks[0] = ls[1].lockstate; in _rtld_atfork_pre()
468 locks[2] = ls[0].lockstate; in _rtld_atfork_pre()
472 _rtld_atfork_post(int *locks) in _rtld_atfork_post() argument
476 if (locks == NULL) in _rtld_atfork_post()
480 ls[0].lockstate = locks[2]; in _rtld_atfork_post()
[all …]
/freebsd-13.1/sys/compat/linux/
H A Dcheck_internal_locks.d47 linuxulator*:locks:futex_mtx:locked
55 linuxulator*:locks:futex_mtx:locked
64 linuxulator*:locks:futex_mtx:unlock
74 linuxulator*:locks:futex_mtx:unlock
H A Dtrace_futexes.d109 linuxulator*:locks:futex_mtx:locked
120 linuxulator*:locks:futex_mtx:unlock
130 linuxulator*:locks:futex_mtx:unlock
/freebsd-13.1/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.c471 if (!(locks & (1 << i))) in spa_config_tryenter()
477 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
485 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
509 if (!(locks & (1 << i))) in spa_config_enter()
528 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter()
537 if (!(locks & (1 << i))) in spa_config_exit()
558 if (!(locks & (1 << i))) in spa_config_held()
1323 int locks = SCL_STATE_ALL | oplocks; in spa_vdev_state_enter() local
1335 int low = locks & ~(SCL_ZIO - 1); in spa_vdev_state_enter()
1336 int high = locks & ~low; in spa_vdev_state_enter()
[all …]
/freebsd-13.1/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 edns.lo locks.lo log.lo mini_event.lo module.lo net_help.lo \
461 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
781 $(srcdir)/util/data/dname.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
786 $(srcdir)/services/cache/dns.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
954 locks.lo locks.o: $(srcdir)/util/locks.c config.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
958 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
1017 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
1195 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h \
1299 $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \
[all …]
/freebsd-13.1/contrib/subversion/subversion/svnbench/
H A Dnull-list-cmd.c47 apr_int64_t locks; member
79 pb->locks++; in print_dirent()
185 svn__ui64toa_sep(pb.locks, ',', pool))); in svn_cl__null_list()
H A Dnull-info-cmd.c171 apr_hash_t *locks; in client_info() local
175 err = svn_ra_get_locks2(ra_session, &locks, "", depth, pool); in client_info()
/freebsd-13.1/contrib/apr/
H A Dbuild-outputs.mk42 locks/unix/global_mutex.lo: locks/unix/global_mutex.c .make.dirs include/apr_allocator.h include/ap…
43 locks/unix/proc_mutex.lo: locks/unix/proc_mutex.c .make.dirs include/apr_allocator.h include/apr_at…
44 locks/unix/thread_cond.lo: locks/unix/thread_cond.c .make.dirs
45 locks/unix/thread_mutex.lo: locks/unix/thread_mutex.c .make.dirs include/apr_want.h
46 locks/unix/thread_rwlock.lo: locks/unix/thread_rwlock.c .make.dirs
48 OBJECTS_locks_unix = locks/unix/global_mutex.lo locks/unix/proc_mutex.lo locks/unix/thread_cond.lo …
153 OBJECTS_locks_beos = locks/beos/proc_mutex.lo locks/beos/thread_cond.lo locks/beos/thread_mutex.lo …
205 OBJECTS_locks_os2 = locks/os2/proc_mutex.lo locks/os2/thread_cond.lo locks/os2/thread_mutex.lo lock…
270 OBJECTS_locks_win32 = locks/win32/proc_mutex.lo locks/win32/thread_cond.lo locks/win32/thread_mutex…
322 …locks/unix memory/unix misc/unix mmap/unix network_io/unix poll/unix random/unix shmem/unix suppor…
[all …]
H A Dbuild.conf17 dso file_io locks memory misc mmap network_io poll random
H A DCHANGES45 *) locks: provide portable implementations of timedlock()s for
49 *) locks: Introduce apr_{thread,proc,global}_mutex_timedlock().
/freebsd-13.1/crypto/openssl/doc/man3/
H A DCRYPTO_THREAD_run_once.pod46 In particular, this can be used to allocate locks in a thread-safe manner,
56 CRYPTO_THREAD_read_lock() locks the provided B<lock> for reading.
60 CRYPTO_THREAD_write_lock() locks the provided B<lock> for writing.
141 Finalization of locks is an advanced topic, not covered in this example.
145 repeatedly load/unload shared libraries that allocate locks.
/freebsd-13.1/contrib/googletest/googletest/include/gtest/internal/custom/
H A DREADME.md42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
43 * `GTEST_LOCK_EXCLUDED_(locks)`
/freebsd-13.1/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
109 static Lock locks[SPINLOCK_COUNT]; variable
126 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
/freebsd-13.1/lib/libc/gen/
H A Ddlfcn.c241 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre()
247 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
/freebsd-13.1/sbin/ddb/
H A Dddb.conf9 script lockinfo=show locks; show alllocks; show lockedvnods
/freebsd-13.1/contrib/subversion/subversion/libsvn_repos/
H A Dfs-wrap.c870 apr_hash_t *locks; member
882 apr_pool_t *hash_pool = apr_hash_pool_get(b->locks); in get_locks_callback()
891 svn_hash_sets(b->locks, apr_pstrdup(hash_pool, lock->path), in get_locks_callback()
899 svn_repos_fs_get_locks2(apr_hash_t **locks, in svn_repos_fs_get_locks2() argument
920 baton.locks = all_locks; in svn_repos_fs_get_locks2()
930 *locks = baton.locks; in svn_repos_fs_get_locks2()
/freebsd-13.1/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c217 lock_wrapper *locks; member
220 .locks = NULL,
227 lock_wrapper *lock = &lu_base.locks[i]; in lu_find()
237 lu_base.locks = realloc(lu_base.locks, in trace_lock_alloc()
240 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; in trace_lock_alloc()
314 free(lu_base.locks); in free_lock_unlock_profiler()
/freebsd-13.1/contrib/subversion/subversion/libsvn_ra_serf/
H A Dgetlocks.c235 apr_hash_t **locks, in svn_ra_serf__get_locks() argument
297 *locks = lock_ctx->hash; in svn_ra_serf__get_locks()
/freebsd-13.1/contrib/libevent/test/
H A Dregress_bufferevent.c224 lock_wrapper *locks; member
227 .locks = NULL,
234 lock_wrapper *lock = &lu_base.locks[i]; in lu_find()
245 lu_base.locks = realloc(lu_base.locks, in trace_lock_alloc()
248 lu_base.locks[lu_base.nr_locks - 1] = (lock_wrapper){ lock, ALLOC, 0 }; in trace_lock_alloc()
327 free(lu_base.locks); in free_lock_unlock_profiler()
/freebsd-13.1/sys/kern/
H A Dkern_lockf.c1874 struct lockdesclist locks; in lf_iteratelocks_sysid() local
1885 STAILQ_INIT(&locks); in lf_iteratelocks_sysid()
1907 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_sysid()
1919 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_sysid()
1920 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_sysid()
1936 struct lockdesclist locks; in lf_iteratelocks_vnode() local
1947 STAILQ_INIT(&locks); in lf_iteratelocks_vnode()
1974 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_vnode()
1989 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_vnode()
1990 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_vnode()

12345