Lines Matching refs:lf
4546 struct flock lf;
4572 lf.l_whence = SEEK_SET;
4573 lf.l_start = 0;
4574 lf.l_len = 0;
4575 lf.l_type = F_UNLCK;
4579 (void) VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context);
4731 struct flock lf;
4744 lf.l_whence = SEEK_SET;
4745 lf.l_start = 0;
4746 lf.l_len = 0;
4748 lf.l_type = F_UNLCK;
4750 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_UNLCK, &lf, F_FLOCK, ctx);
4754 lf.l_type = F_WRLCK;
4756 lf.l_type = F_RDLCK;
4762 error = mac_file_check_lock(proc_ucred(p), fp->f_fglob, F_SETLK, &lf);
4768 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK, ctx);
4771 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK|F_WAIT, ctx);