Lines Matching refs:block
391 struct lockf *block;
414 * Scan lock list for this file looking for locks that would block us.
416 while ((block = lf_getblock(lock))) {
436 (block->lf_flags & F_POSIX)) {
442 /* The block is waiting on something */
443 wproc = (struct proc *)block->lf_id;
460 * which would block us, and make
515 lock->lf_next = block;
516 TAILQ_INSERT_TAIL(&block->lf_blkhd, lock, lf_block);
517 block->lf_waiters++;
520 block->lf_flags &= ~F_WAKE1_SAFE;
524 lf_print("lf_setlock: blocking on", block);
525 lf_printlist("lf_setlock(block)", block);
533 if ((block = lf_getblock(lock))) {
535 tlock->lf_next = block;
537 TAILQ_CONCAT(&block->lf_blkhd, &lock->lf_blkhd, lf_block);
539 block->lf_waiters += lock->lf_waiters;
573 block = *head;
576 ovcase = lf_findoverlap(block, lock, SELF, &prev, &overlap);
578 block = overlap->lf_next;
821 struct lockf *block;
828 if ((block = lf_getblock(lock))) {
829 fl->l_type = block->lf_type;
831 fl->l_start = block->lf_start;
832 if (block->lf_end == -1)
835 fl->l_len = block->lf_end - block->lf_start + 1;
836 if (block->lf_flags & F_POSIX)
837 fl->l_pid = proc_pid((struct proc *)(block->lf_id));
1164 printf(" block %p\n", (void *)TAILQ_FIRST(&lock->lf_blkhd));