Home
last modified time | relevance | path

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

12345

/freebsd-12.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.c191 apr_hash_t *locks, in push_dir_info() argument
219 lock = svn_hash_gets(locks, fs_path); in push_dir_info()
234 depth, ctx, locks, subpool)); in push_dir_info()
436 apr_hash_t *locks; in svn_client_info4() local
440 err = svn_ra_get_locks2(ra_session, &locks, "", depth, in svn_client_info4()
447 locks = apr_hash_make(pool); /* use an empty hash */ in svn_client_info4()
453 locks = apr_hash_make(pool); /* use an empty hash */ in svn_client_info4()
457 depth, ctx, locks, pool)); in svn_client_info4()
H A Dstatus.c186 apr_hash_t *locks; in reporter_finish_report() local
199 err = svn_ra_get_locks2(ras, &locks, "", rb->depth, rb->pool); in reporter_finish_report()
204 locks = apr_hash_make(rb->pool); in reporter_finish_report()
213 SVN_ERR(svn_wc_status_set_repos_locks(rb->set_locks_baton, locks, in reporter_finish_report()
/freebsd-12.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-12.1/libexec/rtld-elf/
H A Drtld_lock.c326 void *locks[RTLD_LOCK_CNT]; in _rtld_thread_init() local
341 pli->lock_destroy(locks[i]); in _rtld_thread_init()
354 rtld_locks[i].handle = locks[i]; in _rtld_thread_init()
375 _rtld_atfork_pre(int *locks) in _rtld_atfork_pre() argument
379 if (locks == NULL) in _rtld_atfork_pre()
394 locks[0] = ls[1].lockstate; in _rtld_atfork_pre()
395 locks[2] = ls[0].lockstate; in _rtld_atfork_pre()
399 _rtld_atfork_post(int *locks) in _rtld_atfork_post() argument
403 if (locks == NULL) in _rtld_atfork_post()
407 ls[0].lockstate = locks[2]; in _rtld_atfork_post()
[all …]
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Drrwlock.c328 rrw_init(&rrl->locks[i], track_all); in rrm_init()
337 rrw_destroy(&rrl->locks[i]); in rrm_destroy()
362 rrw_enter_read(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_enter_read()
371 rrw_enter_write(&rrl->locks[i]); in rrm_enter_write()
379 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit()
381 rrw_exit(&rrl->locks[i], tag); in rrm_exit()
383 rrw_exit(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_exit()
391 return (rrw_held(&rrl->locks[0], rw)); in rrm_held()
393 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
H A Dspa_misc.c507 if (!(locks & (1 << i))) in spa_config_tryenter()
513 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
521 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter()
544 if (!(locks & (1 << i))) in spa_config_enter()
563 ASSERT3U(wlocks_held, <=, locks); in spa_config_enter()
571 if (!(locks & (1 << i))) in spa_config_exit()
592 if (!(locks & (1 << i))) in spa_config_held()
1356 int locks = SCL_STATE_ALL | oplocks; in spa_vdev_state_enter() local
1368 int low = locks & ~(SCL_ZIO - 1); in spa_vdev_state_enter()
1369 int high = locks & ~low; in spa_vdev_state_enter()
[all …]
/freebsd-12.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-12.1/contrib/unbound/
H A DMakefile.in117 util/fptr_wlist.c util/locks.c util/log.c util/mini_event.c util/module.c \
136 fptr_wlist.lo edns.lo locks.lo log.lo mini_event.lo module.lo net_help.lo \
417 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
733 $(srcdir)/util/data/dname.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
738 $(srcdir)/services/cache/dns.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
904 locks.lo locks.o: $(srcdir)/util/locks.c config.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
908 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
967 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
1146 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h \
1237 $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h \
[all …]
/freebsd-12.1/contrib/apr/
H A Dbuild-outputs.mk40 locks/unix/global_mutex.lo: locks/unix/global_mutex.c .make.dirs include/apr_allocator.h include/ap…
41 locks/unix/proc_mutex.lo: locks/unix/proc_mutex.c .make.dirs include/apr_allocator.h include/apr_er…
42 locks/unix/thread_cond.lo: locks/unix/thread_cond.c .make.dirs
43 locks/unix/thread_mutex.lo: locks/unix/thread_mutex.c .make.dirs include/apr_want.h
44 locks/unix/thread_rwlock.lo: locks/unix/thread_rwlock.c .make.dirs
46 OBJECTS_locks_unix = locks/unix/global_mutex.lo locks/unix/proc_mutex.lo locks/unix/thread_cond.lo …
148 OBJECTS_locks_beos = locks/beos/proc_mutex.lo locks/beos/thread_cond.lo locks/beos/thread_mutex.lo …
200 OBJECTS_locks_os2 = locks/os2/proc_mutex.lo locks/os2/thread_cond.lo locks/os2/thread_mutex.lo lock…
265 OBJECTS_locks_win32 = locks/win32/proc_mutex.lo locks/win32/thread_cond.lo locks/win32/thread_mutex…
316 …locks/unix user/unix time/win32 locks/beos tables support/unix file_io/unix mmap/unix atomic/unix …
[all …]
H A Dbuild.conf17 dso file_io locks memory misc mmap network_io poll random
/freebsd-12.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-12.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-12.1/contrib/compiler-rt/lib/builtins/
H A Datomic.c74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} }; variable
87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable
104 static Lock locks[SPINLOCK_COUNT]; variable
122 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
/freebsd-12.1/contrib/googletest/googletest/include/gtest/internal/custom/
H A DREADME.md42 * `GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
43 * `GTEST_LOCK_EXCLUDED_(locks)`
/freebsd-12.1/lib/libc/gen/
H A Ddlfcn.c230 _rtld_atfork_pre(int *locks __unused) in _rtld_atfork_pre()
236 _rtld_atfork_post(int *locks __unused) in _rtld_atfork_post()
/freebsd-12.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-12.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-12.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-12.1/sbin/ddb/
H A Dddb.conf9 script lockinfo=show locks; show alllocks; show lockedvnods
/freebsd-12.1/sys/kern/
H A Dsubr_epoch.c488 int locks __unused; in epoch_wait_preempt()
494 locks = curthread->td_locks; in epoch_wait_preempt()
532 KASSERT(td->td_locks == locks, in epoch_wait_preempt()
533 ("%d residual locks held", td->td_locks - locks)); in epoch_wait_preempt()
H A Dkern_lockf.c1877 struct lockdesclist locks; in lf_iteratelocks_sysid() local
1888 STAILQ_INIT(&locks); in lf_iteratelocks_sysid()
1910 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_sysid()
1922 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_sysid()
1923 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_sysid()
1939 struct lockdesclist locks; in lf_iteratelocks_vnode() local
1950 STAILQ_INIT(&locks); in lf_iteratelocks_vnode()
1976 STAILQ_INSERT_TAIL(&locks, ldesc, link); in lf_iteratelocks_vnode()
1990 while ((ldesc = STAILQ_FIRST(&locks)) != NULL) { in lf_iteratelocks_vnode()
1991 STAILQ_REMOVE_HEAD(&locks, link); in lf_iteratelocks_vnode()
/freebsd-12.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()

12345