Lines Matching defs:lock_wanted
100 #define lock_wanted lock_queue[0]
410 send_lockmsg(ackmessage, (pid_t)0, &lock_wanted.remote, 0);
422 if (lock_wanted.state != STATE_ASKED)
432 if (wait == 0 && lock_wanted.type == LOCK_WRITE) {
434 the_lock.holding_pid[0] = lock_wanted.pid;
481 if (lock_wanted.type == LOCK_READ) {
483 the_lock.holding_pid[i] = lock_wanted.pid;
496 if (lock_wanted.type == LOCK_READ) {
498 the_lock.holding_pid[0] = lock_wanted.pid;
506 if (islocalhost(&lock_wanted.remote)) {
509 if (lock_wanted.state != STATE_ASKED) {
519 lock_wanted.state = STATE_ASKED;
527 the_lock.holder = lock_wanted.remote;
594 lock_wanted.state = STATE_CLEAR;