Searched refs:lk (Results 1 - 25 of 25) sorted by relevance

/freebsd-11-stable/sys/kern/
H A Dkern_lock.c71 #define _lockmgr_assert(lk, what, file, line)
78 #define STACK_PRINT(lk)
79 #define STACK_SAVE(lk)
80 #define STACK_ZERO(lk)
82 #define STACK_PRINT(lk) stack_print_ddb(&(lk)->lk_stack)
83 #define STACK_SAVE(lk) stack_save(&(lk)->lk_stack)
84 #define STACK_ZERO(lk) stack_zero(&(lk)
176 lockmgr_note_shared_acquire(struct lock *lk, int contested, uint64_t waittime, const char *file, int line, int flags) argument
190 lockmgr_note_shared_release(struct lock *lk, const char *file, int line) argument
201 lockmgr_note_exclusive_acquire(struct lock *lk, int contested, uint64_t waittime, const char *file, int line, int flags) argument
215 lockmgr_note_exclusive_release(struct lock *lk, const char *file, int line) argument
226 lockmgr_note_exclusive_upgrade(struct lock *lk, const char *file, int line, int flags) argument
238 lockmgr_xholder(const struct lock *lk) argument
253 sleeplk(struct lock *lk, u_int flags, struct lock_object *ilk, const char *wmesg, int pri, int timo, int queue) argument
297 wakeupshlk(struct lock *lk, const char *file, int line) argument
412 lockinit(struct lock *lk, int pri, const char *wmesg, int timo, int flags) argument
450 lockallowshare(struct lock *lk) argument
458 lockdisableshare(struct lock *lk) argument
466 lockallowrecurse(struct lock *lk) argument
474 lockdisablerecurse(struct lock *lk) argument
482 lockdestroy(struct lock *lk) argument
492 lockmgr_slock_try(struct lock *lk, uintptr_t *xp, int flags) argument
513 lockmgr_sunlock_try(struct lock *lk, uintptr_t x) argument
546 lockmgr_lock_fast_path(struct lock *lk, u_int flags, struct lock_object *ilk, const char *file, int line) argument
611 lockmgr_unlock_fast_path(struct lock *lk, u_int flags, struct lock_object *ilk) argument
651 __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk, const char *wmesg, int pri, int timo, const char *file, int line) argument
1492 _lockmgr_disown(struct lock *lk, const char *file, int line) argument
1535 lockmgr_printinfo(const struct lock *lk) argument
1570 lockstatus(const struct lock *lk) argument
1600 _lockmgr_assert(const struct lock *lk, int what, const char *file, int line) argument
1675 struct lock *lk; local
1696 const struct lock *lk; local
[all...]
H A Dvfs_lookup.c93 struct lock *lk; local
98 lk = vp->v_vnlock;
106 WITNESS_CHECKORDER(&lk->lock_object, LOP_NEWORDER, file, line,
108 WITNESS_LOCK(&lk->lock_object, 0, file, line);
111 LOCK_LOG_LOCK("SLOCK", &lk->lock_object, 0, 0, ap->a_file, line);
119 struct lock *lk; local
123 lk = vp->v_vnlock;
128 WITNESS_UNLOCK(&lk->lock_object, 0, LOCK_FILE, LOCK_LINE);
129 LOCK_LOG_LOCK("SUNLOCK", &lk->lock_object, 0, 0, LOCK_FILE,
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_lock.c43 __cpu_simple_lock_t lk; variable
50 __cpu_simple_unlock(&lk);
64 __cpu_simple_lock_init(&lk);
74 __cpu_simple_lock(&lk);
75 __cpu_simple_lock(&lk);
79 __cpu_simple_unlock(&lk);
/freebsd-11-stable/sys/sys/
H A Dlockmgr.h69 int __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk,
71 int lockmgr_lock_fast_path(struct lock *lk, u_int flags,
73 int lockmgr_unlock_fast_path(struct lock *lk, u_int flags,
76 void _lockmgr_assert(const struct lock *lk, int what, const char *file, int line);
78 void _lockmgr_disown(struct lock *lk, const char *file, int line);
80 void lockallowrecurse(struct lock *lk);
81 void lockallowshare(struct lock *lk);
82 void lockdestroy(struct lock *lk);
83 void lockdisablerecurse(struct lock *lk);
84 void lockdisableshare(struct lock *lk);
98 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, int prio, int timo, const char *file, int line) argument
107 _lockmgr_args_rw(struct lock *lk, u_int flags, struct rwlock *ilk, const char *wmesg, int prio, int timo, const char *file, int line) argument
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_rwlock.c69 pthread_rwlock_t lk; variable
93 PTHREAD_REQUIRE(pthread_rwlock_init(&lk, NULL));
94 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk));
95 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk));
96 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk));
98 ATF_REQUIRE_EQ(pthread_rwlock_trywrlock(&lk), EBUSY);
103 error = pthread_rwlock_timedwrlock(&lk, &to);
107 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk));
112 PTHREAD_REQUIRE(pthread_rwlock_timedwrlock(&lk, &to));
117 error = pthread_rwlock_timedwrlock(&lk,
[all...]
/freebsd-11-stable/contrib/llvm-project/libcxx/src/
H A Dcondition_variable.cpp39 condition_variable::wait(unique_lock<mutex>& lk) _NOEXCEPT
41 if (!lk.owns_lock())
44 int ec = __libcpp_condvar_wait(&__cv_, lk.mutex()->native_handle());
50 condition_variable::__do_timed_wait(unique_lock<mutex>& lk,
54 if (!lk.owns_lock())
74 int ec = __libcpp_condvar_timedwait(&__cv_, lk.mutex()->native_handle(), &ts);
80 notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk) argument
88 __thread_local_data()->notify_all_at_thread_exit(&cond, lk.release());
H A Dshared_mutex.cpp30 unique_lock<mutex> lk(__mut_);
32 __gate1_.wait(lk);
35 __gate2_.wait(lk);
41 unique_lock<mutex> lk(__mut_);
63 unique_lock<mutex> lk(__mut_);
65 __gate1_.wait(lk);
74 unique_lock<mutex> lk(__mut_);
H A Dmutex.cpp105 unique_lock<mutex> lk(__m_);
107 __cv_.wait(lk);
114 unique_lock<mutex> lk(__m_, try_to_lock);
115 if (lk.owns_lock() && !__locked_)
148 unique_lock<mutex> lk(__m_);
157 __cv_.wait(lk);
166 unique_lock<mutex> lk(__m_, try_to_lock);
167 if (lk.owns_lock() && (__count_ == 0 || id == __id_))
181 unique_lock<mutex> lk(__m_);
185 lk
[all...]
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_lock.cpp73 return KMP_LOCK_STRIP(KMP_ATOMIC_LD_RLX(&lck->lk.poll)) - 1;
77 return lck->lk.depth_locked != -1;
85 kmp_uint32 curr = KMP_LOCK_STRIP(lck->lk.poll);
94 if (KMP_ATOMIC_LD_RLX(&lck->lk.poll) == tas_free &&
95 __kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy)) {
107 } while (KMP_ATOMIC_LD_RLX(&lck->lk.poll) != tas_free ||
108 !__kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy));
135 if (KMP_ATOMIC_LD_RLX(&lck->lk.poll) == tas_free &&
136 __kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy)) {
158 KMP_ATOMIC_ST_REL(&lck->lk
[all...]
H A Dkmp_lock.h130 kmp_base_tas_lock_t lk; member in union:kmp_tas_lock
188 kmp_base_futex_lock_t lk; member in union:kmp_futex_lock
266 lk; // This field must be first to allow static initializing. member in union:kmp_ticket_lock
386 lk; // This field must be first to allow static initializing. member in union:kmp_queuing_lock
423 kmp_base_adaptive_lock_t lk; member in union:kmp_adaptive_lock
430 #define GET_QLK_PTR(l) ((kmp_queuing_lock_t *)&(l)->lk.qlk)
483 lk; // This field must be first to allow static initializing. */ member in union:kmp_drdpa_lock
643 lck->tas.lk.depth_locked != -1) { \
646 if ((gtid >= 0) && (lck->tas.lk.poll - 1 == gtid)) { \
650 if (lck->tas.lk
[all...]
H A Dkmp_csupport.cpp978 if (KMP_ATOMIC_LD_RLX(&l->lk.poll) != tas_free || \
979 !__kmp_atomic_compare_store_acq(&l->lk.poll, tas_free, tas_busy)) { \
993 KMP_ATOMIC_LD_RLX(&l->lk.poll) != tas_free || \
994 !__kmp_atomic_compare_store_acq(&l->lk.poll, tas_free, tas_busy)); \
1005 rc = KMP_ATOMIC_LD_RLX(&l->lk.poll) == tas_free && \
1006 __kmp_atomic_compare_store_acq(&l->lk.poll, tas_free, tas_busy); \
1011 { KMP_ATOMIC_ST_REL(&((kmp_tas_lock_t *)lock)->lk.poll, KMP_LOCK_FREE(tas)); }
1033 &(ftx->lk.poll), KMP_LOCK_FREE(futex), \
1037 if (!KMP_COMPARE_AND_STORE_RET32(&(ftx->lk.poll), poll_val, \
1045 if ((rc = syscall(__NR_futex, &(ftx->lk
1384 kmp_dyna_lock_t *lk = (kmp_dyna_lock_t *)crit; local
3216 kmp_dyna_lock_t *lk = (kmp_dyna_lock_t *)crit; local
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zlook/
H A Dzlook.c201 zut_lookup_t lk = {0}; local
219 lk.zl_reqflags |= ZUT_IGNORECASE;
223 lk.zl_reqflags |= ZUT_GETSTAT;
366 (void) strlcpy(lk.zl_dir, argv[optind], MAXPATHLEN);
367 (void) strlcpy(lk.zl_file, argv[optind + 1], MAXNAMELEN);
369 (void) strlcpy(lk.zl_xfile,
371 lk.zl_reqflags |= ZUT_XATTR;
374 if ((ierr = ioctl(fd, ZUT_IOC_LOOKUP, &lk)) != 0) {
383 if (lk.zl_reqflags & ZUT_XATTR) {
385 lk
[all...]
/freebsd-11-stable/crypto/openssl/crypto/engine/
H A Dtb_asnmth.c210 ENGINE_FIND_STR *lk = arg; local
212 if (lk->ameth)
218 if (ameth != NULL && ((int)strlen(ameth->pem_str) == lk->len) &&
219 !strncasecmp(ameth->pem_str, lk->str, lk->len)) {
220 lk->e = e;
221 lk->ameth = ameth;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector1.cpp108 SpinMutexLock lk(&mtx);
163 SpinMutexLock lk(&mtx);
180 SpinMutexLock lk(&mtx);
/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_kernel.h303 struct fuse_file_lock lk; member in struct:fuse_lk_in
307 struct fuse_file_lock lk; member in struct:fuse_lk_out
/freebsd-11-stable/contrib/libreadline/
H A Dreadline.c451 int c, code, lk; local
460 lk = _rl_last_command_was_kill;
524 if (rl_pending_input == 0 && lk == _rl_last_command_was_kill)
/freebsd-11-stable/contrib/sendmail/src/
H A Dconf.c922 struct __nsw_lookup *lk; local
932 lk = lkp_default.lookups;
934 lk = nsw_conf->lookups;
936 while (lk != NULL && svcno < MAXMAPSTACK)
938 maptype[svcno] = lk->service_name;
939 if (lk->actions[__NSW_NOTFOUND] == __NSW_RETURN)
941 if (lk->actions[__NSW_TRYAGAIN] == __NSW_RETURN)
943 if (lk->actions[__NSW_UNAVAIL] == __NSW_RETURN)
946 lk = lk
[all...]
/freebsd-11-stable/sys/ufs/ffs/
H A Dffs_softdep.c973 static struct mtx lk; variable in typeref:struct:mtx
974 MTX_SYSINIT(softdep_lock, &lk, "Global Softdep Lock", MTX_DEF);
976 #define ACQUIRE_GBLLOCK(lk) mtx_lock(lk)
977 #define FREE_GBLLOCK(lk) mtx_unlock(lk)
978 #define GBLLOCK_OWNED(lk) mtx_assert((lk), MA_OWNED)
1210 ACQUIRE_GBLLOCK(&lk);
1215 FREE_GBLLOCK(&lk);
[all...]
/freebsd-11-stable/contrib/binutils/opcodes/
H A Dppc-opc.c1287 #define B(op, aa, lk) (OP (op) | ((((unsigned long)(aa)) & 1) << 1) | ((lk) & 1))
1291 #define BBO(op, bo, aa, lk) (B ((op), (aa), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21))
1305 #define BBOCB(op, bo, cb, aa, lk) \
1306 (BBO ((op), (bo), (aa), (lk)) | ((((unsigned long)(cb)) & 0x3) << 16))
1372 #define SC(op, sa, lk) (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))
1482 #define XLLK(op, xop, lk) (XL ((op), (xop)) | ((lk)
[all...]
/freebsd-11-stable/sys/dev/ioat/
H A Dioat.c1851 #define db_show_lock(lk) _db_show_lock(&(lk)->lock_object)
/freebsd-11-stable/bin/ls/tests/
H A Dls_tests.sh610 -o match:"[[:space:]]+$(stat -f "%z" $file)[[:space:]]+.+[[:space:]]+$file" ls -lk $file
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DStmtPrinter.cpp1167 case BuiltinType::LongAccum: OS << "lk"; break;
/freebsd-11-stable/contrib/gcclibs/libgomp/
H A Dconfigure16680 int lk;
16684 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16789 int lk;
16793 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
/freebsd-11-stable/crypto/heimdal/lib/sqlite/
H A Dsqlite3.c27254 long lk, mask; local
27262 lk = random();
27263 pInode->sharedByte = (lk & mask)%(SHARED_SIZE - 1);
32911 int lk; local
32912 sqlite3_randomness(sizeof(lk), &lk); local
[all...]
/freebsd-11-stable/contrib/sqlite3/
H A Dsqlite3.c36859 long lk, mask; local
45279 int lk; local
45280 sqlite3_randomness(sizeof(lk), &lk); local
[all...]

Completed in 1189 milliseconds