HomeSort by: relevance | last modified time | path
    Searched refs:lk (Results 1 - 25 of 27) sorted by relevancy

1 2

  /src/tests/kernel/
t_lock.c 43 __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);
  /src/tests/lib/libpthread/
t_rwlock.c 69 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, &to)
    [all...]
  /src/external/apache2/llvm/dist/libcxx/src/
condition_variable.cpp 39 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)
88 __thread_local_data()->notify_all_at_thread_exit(&cond, lk.release());
shared_mutex.cpp 30 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_);
mutex.cpp 105 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.unlock()
    [all...]
  /src/external/cddl/osnet/dist/cmd/zlook/
zlook.c 201 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.zl_xfile)
    [all...]
  /src/external/bsd/am-utils/dist/conf/mtab/
mtab_isc3.c 67 struct flock lk; local
69 lk.l_type = type;
70 lk.l_whence = 0;
71 lk.l_start = 0;
72 lk.l_len = 0;
74 return fcntl(fd, F_SETLKW, &lk);
mtab_svr4.c 84 struct flock lk; local
87 lk.l_type = type;
88 lk.l_whence = 0;
89 lk.l_start = 0;
90 lk.l_len = 0;
96 ret = fcntl(fd, F_SETLKW, &lk);
mtab_file.c 74 struct flock lk; local
76 lk.l_type = F_WRLCK;
77 lk.l_whence = 0;
78 lk.l_start = 0;
79 lk.l_len = 0;
82 rc = fcntl(fd, F_SETLKW, (caddr_t) & lk);
mtab_mach3.c 70 struct flock lk; local
72 lk.l_type = F_WRLCK;
73 lk.l_whence = 0;
74 lk.l_start = 0;
75 lk.l_len = 0;
78 rc = fcntl(fd, F_SETLKW, (caddr_t) & lk);
  /src/sys/kern/
sys_aio.c 330 aiowaitgrouplk_fini(&job->lk);
346 aiowaitgrouplk_flush(&job->lk);
571 aiowaitgroup_join(wg, &job->lk);
1456 aiowaitgrouplk_init(struct aiowaitgrouplk *lk)
1458 mutex_init(&lk->mtx, MUTEX_DEFAULT, IPL_NONE);
1459 lk->n = 0;
1460 lk->s = 2;
1461 lk->wgs = kmem_alloc(sizeof(*lk->wgs) * lk->s, KM_SLEEP)
    [all...]
  /src/lib/librumpuser/
rumpuser_pth_dummy.c 164 enum rumprwlock lk = enum_rumprwlock; local
166 switch (lk) {
208 enum rumprwlock lk = enum_rumprwlock; local
210 switch (lk) {
rumpuser_pth.c 376 enum rumprwlock lk = enum_rumprwlock; local
378 switch (lk) {
398 enum rumprwlock lk = enum_rumprwlock; local
401 switch (lk) {
480 enum rumprwlock lk = enum_rumprwlock; local
482 switch (lk) {
rumpfiber.c 791 enum rumprwlock lk = enum_rumprwlock; local
795 switch (lk) {
815 enum rumprwlock lk = enum_rumprwlock; local
818 switch (lk) {
871 enum rumprwlock lk = enum_rumprwlock; local
873 switch (lk) {
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_deadlock_detector1.cc 109 SpinMutexLock lk(&mtx);
164 SpinMutexLock lk(&mtx);
181 SpinMutexLock lk(&mtx);
  /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
sanitizer_deadlock_detector1.cpp 108 SpinMutexLock lk(&mtx);
163 SpinMutexLock lk(&mtx);
180 SpinMutexLock lk(&mtx);
  /src/sys/sys/
aio.h 125 struct aiowaitgrouplk lk; /* List of waitgroups waiting on this job */ member in struct:aio_job
  /src/lib/libperfuse/
fuse.h 350 struct fuse_file_lock lk; member in struct:fuse_lk_in
356 struct fuse_file_lock lk; member in struct:fuse_lk_out
ops.c 3008 fli->lk.start = fl->l_start;
3009 fli->lk.end = fl->l_start + fl->l_len;
3010 fli->lk.type = fl->l_type;
3011 fli->lk.pid = fl->l_pid;
3040 fl->l_start = flo->lk.start;
3041 fl->l_len = flo->lk.end - flo->lk.start;
3042 fl->l_pid = flo->lk.pid;
3043 fl->l_type = flo->lk.type;
3046 PERFUSE_NODE_DATA(opc)->pnd_lock_owner = flo->lk.pid
    [all...]
  /src/sys/arch/mips/rmi/
rmixl_fmn.c 483 kmutex_t *lk; local
490 lk = mutex_obj_alloc(MUTEX_DEFAULT, RMIXL_FMN_INTR_IPL);
491 if (lk == NULL)
493 fmnp->fmn_lock = lk;
  /src/sys/dev/raidframe/
rf_dagutils.c 502 int i, lk, unlk; local
510 lk = 0;
512 RF_ASSERT(!(lk && unlk));
515 (lk) ? "LOCK" : ((unlk) ? "UNLK" : " "));
  /src/sys/dev/ic/
ac97.c 1227 ac97_attach(struct ac97_host_if *host_if, device_t sc_dev, kmutex_t *lk)
1229 return ac97_attach_type(host_if, sc_dev, AC97_CODEC_TYPE_AUDIO, lk);
1233 ac97_attach_type(struct ac97_host_if *host_if, device_t sc_dev, int type, kmutex_t *lk)
1255 as->lock = lk;
  /src/external/gpl3/binutils/dist/opcodes/
ppc-opc.c 4170 #define B(op, aa, lk) \
4173 | ((lk) & 1))
4177 #define BD8(op, aa, lk) \
4180 | (((lk) & 1) << 8))
4197 #define BD15(op, aa, lk) \
4200 | ((lk) & 1))
4204 #define EBD15(op, aa, bo, lk) \
4208 | ((lk) & 1)
4213 #define EBD15BI(op, aa, bo, bi, lk) \
4218 | ((lk) & 1)
    [all...]
  /src/external/gpl3/binutils.old/dist/opcodes/
ppc-opc.c 4169 #define B(op, aa, lk) \
4172 | ((lk) & 1))
4176 #define BD8(op, aa, lk) \
4179 | (((lk) & 1) << 8))
4196 #define BD15(op, aa, lk) \
4199 | ((lk) & 1))
4203 #define EBD15(op, aa, bo, lk) \
4207 | ((lk) & 1)
4212 #define EBD15BI(op, aa, bo, bi, lk) \
4217 | ((lk) & 1)
    [all...]
  /src/external/gpl2/texinfo/dist/info/
session.c 198 int lk = 0; local
208 lk = echo_area_last_command_was_kill;
237 if (lk == echo_area_last_command_was_kill)

Completed in 71 milliseconds

1 2