Home
last modified time | relevance | path

Searched refs:lock2 (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/
H A Dflock_impl.h205 #define SAME_OWNER(lock1, lock2) \ argument
206 (((lock1)->l_flock.l_pid == (lock2)->l_flock.l_pid) && \
207 ((lock1)->l_flock.l_sysid == (lock2)->l_flock.l_sysid) && \
208 ((lock1)->l_ofd == (lock2)->l_ofd))
242 #define OVERLAP(lock1, lock2) \ argument
243 (((lock1)->l_start <= (lock2)->l_start && \
244 (lock2)->l_start <= (lock1)->l_end) || \
245 ((lock2)->l_start <= (lock1)->l_start && \
246 (lock1)->l_start <= (lock2)->l_end))
297 #define BLOCKS(lock1, lock2) (!SAME_OWNER((lock1), (lock2)) && \ argument
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c1618 lock_descriptor_t *lock1, *lock2; in flk_relation() local
1677 lock2 = flk_get_lock(); in flk_relation()
1679 COPY(lock2, lock); in flk_relation()
1682 lock2->l_start = request->l_end + 1; in flk_relation()
1683 lock2->l_end = lock->l_end; in flk_relation()
1685 topology[1] = lock2; in flk_relation()
4468 lock_descriptor_t *lock1, *lock2; in check_sleeping_locks() local
4473 for (lock2 = lock1->l_next; lock2 != SLEEPING_HEAD(gp); in check_sleeping_locks()
4474 lock2 = lock2->l_next) { in check_sleeping_locks()
4475 if (lock1->l_vnode == lock2->l_vnode) { in check_sleeping_locks()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c439 lockinfo_t *lock1, lockinfo_t *lock2, boolean_t kill_firstborn) in flock_test_exclusive() argument
458 assert_unlocked(lock2); in flock_test_exclusive()
473 assert_unlocked(lock2); in flock_test_exclusive()
491 lockinfo_t *lock1, lockinfo_t *lock2, boolean_t kill_firstborn) in flock_test_shared() argument
508 assert_unlocked(lock2); in flock_test_shared()
520 assert_unlocked(lock2); in flock_test_shared()