lf 1019 kern/kern_descrip.c struct flock lf; lf 1034 kern/kern_descrip.c lf.l_whence = SEEK_SET; lf 1035 kern/kern_descrip.c lf.l_start = 0; lf 1036 kern/kern_descrip.c lf.l_len = 0; lf 1037 kern/kern_descrip.c lf.l_type = F_UNLCK; lf 1039 kern/kern_descrip.c (void) VOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX); lf 1069 kern/kern_descrip.c lf.l_whence = SEEK_SET; lf 1070 kern/kern_descrip.c lf.l_start = 0; lf 1071 kern/kern_descrip.c lf.l_len = 0; lf 1072 kern/kern_descrip.c lf.l_type = F_UNLCK; lf 1074 kern/kern_descrip.c (void) VOP_ADVLOCK(vp, (caddr_t)fp, F_UNLCK, &lf, F_FLOCK); lf 1113 kern/kern_descrip.c struct flock lf; lf 1121 kern/kern_descrip.c lf.l_whence = SEEK_SET; lf 1122 kern/kern_descrip.c lf.l_start = 0; lf 1123 kern/kern_descrip.c lf.l_len = 0; lf 1125 kern/kern_descrip.c lf.l_type = F_UNLCK; lf 1127 kern/kern_descrip.c error = VOP_ADVLOCK(vp, (caddr_t)fp, F_UNLCK, &lf, F_FLOCK); lf 1131 kern/kern_descrip.c lf.l_type = F_WRLCK; lf 1133 kern/kern_descrip.c lf.l_type = F_RDLCK; lf 1140 kern/kern_descrip.c error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, F_FLOCK); lf 1142 kern/kern_descrip.c error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, F_FLOCK|F_WAIT); lf 470 kern/vfs_lockf.c struct lockf *lf = *head; lf 474 kern/vfs_lockf.c if (lf == NULL) lf 481 kern/vfs_lockf.c while ((ovcase = lf_findoverlap(lf, lock, SELF, lf 506 kern/vfs_lockf.c lf = overlap->lf_next; lf 513 kern/vfs_lockf.c lf = overlap->lf_next; lf 564 kern/vfs_lockf.c struct lockf **prev, *overlap, *lf; lf 567 kern/vfs_lockf.c lf = *prev; lf 568 kern/vfs_lockf.c while (lf_findoverlap(lf, lock, OTHERS, &prev, &overlap) != 0) { lf 578 kern/vfs_lockf.c lf = overlap->lf_next; lf 591 kern/vfs_lockf.c lf_findoverlap(struct lockf *lf, struct lockf *lock, int type, lf 597 kern/vfs_lockf.c if (lf && lockf_debug & DEBUG_FINDOVR) lf 601 kern/vfs_lockf.c *overlap = lf; lf 604 kern/vfs_lockf.c while (lf != NULL) { lf 605 kern/vfs_lockf.c if (((type & SELF) && lf->lf_id != lock->lf_id) || lf 606 kern/vfs_lockf.c ((type & OTHERS) && lf->lf_id == lock->lf_id)) { lf 607 kern/vfs_lockf.c *prev = &lf->lf_next; lf 608 kern/vfs_lockf.c *overlap = lf = lf->lf_next; lf 613 kern/vfs_lockf.c lf_print("\tchecking", lf); lf 628 kern/vfs_lockf.c if ((lf->lf_end != -1 && start > lf->lf_end) || lf 629 kern/vfs_lockf.c (end != -1 && lf->lf_start > end)) { lf 631 kern/vfs_lockf.c if ((type & SELF) && end != -1 && lf->lf_start > end) lf 633 kern/vfs_lockf.c *prev = &lf->lf_next; lf 634 kern/vfs_lockf.c *overlap = lf = lf->lf_next; lf 638 kern/vfs_lockf.c if ((lf->lf_start == start) && (lf->lf_end == end)) { lf 643 kern/vfs_lockf.c if ((lf->lf_start <= start) && lf 644 kern/vfs_lockf.c (lf->lf_end == -1 || lf 645 kern/vfs_lockf.c (end != -1 && lf->lf_end >= end))) { lf 650 kern/vfs_lockf.c if (start <= lf->lf_start && lf 652 kern/vfs_lockf.c (lf->lf_end != -1 && end >= lf->lf_end))) { lf 657 kern/vfs_lockf.c if ((lf->lf_start < start) && lf 658 kern/vfs_lockf.c ((lf->lf_end >= start) || (lf->lf_end == -1))) { lf 664 kern/vfs_lockf.c if ((lf->lf_start > start) && lf 666 kern/vfs_lockf.c ((lf->lf_end > end) || (lf->lf_end == -1))) { lf 767 kern/vfs_lockf.c struct lockf *lf; lf 770 kern/vfs_lockf.c for (lf = *lock->lf_head; lf; lf = lf->lf_next) { lf 771 kern/vfs_lockf.c printf("\tlock %p for ", lf); lf 772 kern/vfs_lockf.c if (lf->lf_flags & F_POSIX) lf 773 kern/vfs_lockf.c printf("proc %d", ((struct proc*)(lf->lf_id))->p_pid); lf 775 kern/vfs_lockf.c printf("id %p", lf->lf_id); lf 777 kern/vfs_lockf.c lf->lf_type == F_RDLCK ? "shared" : lf 778 kern/vfs_lockf.c lf->lf_type == F_WRLCK ? "exclusive" : lf 779 kern/vfs_lockf.c lf->lf_type == F_UNLCK ? "unlock" : lf 780 kern/vfs_lockf.c "unknown", lf->lf_start, lf->lf_end); lf 834 kern/vfs_syscalls.c struct flock lf; lf 872 kern/vfs_syscalls.c lf.l_whence = SEEK_SET; lf 873 kern/vfs_syscalls.c lf.l_start = 0; lf 874 kern/vfs_syscalls.c lf.l_len = 0; lf 876 kern/vfs_syscalls.c lf.l_type = F_WRLCK; lf 878 kern/vfs_syscalls.c lf.l_type = F_RDLCK; lf 883 kern/vfs_syscalls.c error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, type); lf 978 kern/vfs_syscalls.c struct flock lf; lf 1050 kern/vfs_syscalls.c lf.l_whence = SEEK_SET; lf 1051 kern/vfs_syscalls.c lf.l_start = 0; lf 1052 kern/vfs_syscalls.c lf.l_len = 0; lf 1054 kern/vfs_syscalls.c lf.l_type = F_WRLCK; lf 1056 kern/vfs_syscalls.c lf.l_type = F_RDLCK; lf 1061 kern/vfs_syscalls.c error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, type);