Lines Matching refs:lf
4917 struct flock lf;
4944 lf.l_whence = SEEK_SET;
4945 lf.l_start = 0;
4946 lf.l_len = 0;
4947 lf.l_type = F_UNLCK;
4951 (void) VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context, NULL);
5109 struct flock lf;
5122 lf.l_whence = SEEK_SET;
5123 lf.l_start = 0;
5124 lf.l_len = 0;
5126 lf.l_type = F_UNLCK;
5128 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_UNLCK, &lf, F_FLOCK, ctx, NULL);
5132 lf.l_type = F_WRLCK;
5134 lf.l_type = F_RDLCK;
5140 error = mac_file_check_lock(proc_ucred(p), fp->f_fglob, F_SETLK, &lf);
5146 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK, ctx, NULL);
5149 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK|F_WAIT, ctx, NULL);