| /src/tests/kernel/ |
| t_lockf.c | 191 dolock(int fd, int op, off_t lk_off, off_t lk_size) function 233 error = dolock(fd, F_LOCK, 0, 1); 234 ATF_REQUIRE_MSG(error == 0, "initial dolock: %s", strerror(errno)); 239 error = dolock(fd, F_LOCK, 1, 1); 240 ATF_REQUIRE_MSG(error == 0, "child dolock: %s", 242 dolock(fd, F_LOCK, 0, 1); /* will block */ 247 error = dolock(fd, F_LOCK, 1, 1);
|
| /src/sys/kern/ |
| kern_turnstile.c | 226 bool dolock; local 253 dolock = l->l_mutex != atomic_load_relaxed(&owner->l_mutex); 254 if (l == owner || (dolock && !lwp_trylock(owner))) { 274 if (dolock) 294 if (dolock) 319 bool dolock; local 323 dolock = (atomic_load_relaxed(&l->l_mutex) == 325 if (dolock) { 358 if (dolock) {
|
| /src/sys/fs/union/ |
| union_vnops.c | 994 int dolock = (vp == LOWERVP(ap->a_vp)); local 996 if (dolock) 999 if (dolock) 1168 int dolock = (targetvp == LOWERVP(ap->a_vp)); local 1170 if (dolock) 1174 if (dolock) 1556 int dolock, error; local 1562 dolock = 1; 1565 dolock = 0; 1570 if (dolock) 1590 int dolock = (vp == LOWERVP(ap->a_vp)); local 1770 int dolock = (vp == LOWERVP(ap->a_vp)); local 1835 int dolock = (vp == LOWERVP(ap->a_vp)); local [all...] |
| /src/lib/libc/time/ |
| localtime.c | 154 static int dolock(void) { return pthread_rwlock_rdlock(&locallock); } function 158 static int dolock(void) { return pthread_mutex_lock(&locallock); } function 168 return dolock();
|