Lines Matching refs:fl
111 struct flock64 *fl,
126 nlm_init_flock(struct flock64 *fl, struct nlm4_lock *nl, in nlm_init_flock() argument
131 bzero(fl, sizeof (*fl)); in nlm_init_flock()
151 fl->l_type = type; in nlm_init_flock()
152 fl->l_whence = SEEK_SET; in nlm_init_flock()
153 fl->l_start = off; in nlm_init_flock()
154 fl->l_len = len; in nlm_init_flock()
155 fl->l_sysid = host->nh_sysid; in nlm_init_flock()
156 fl->l_pid = nl->svid; in nlm_init_flock()
332 struct flock64 fl; in nlm_do_test() local
366 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_test()
374 error = nlm_vop_frlock(vp, F_GETLK, &fl, in nlm_do_test()
382 if (fl.l_type == F_UNLCK) { in nlm_do_test()
403 if (fl.l_start > MAX_UOFF32) in nlm_do_test()
404 fl.l_start = MAX_UOFF32; in nlm_do_test()
405 maxlen = MAX_UOFF32 + 1 - fl.l_start; in nlm_do_test()
406 if (fl.l_len > maxlen) in nlm_do_test()
407 fl.l_len = maxlen; in nlm_do_test()
417 oh->oh_sysid = (sysid_t)fl.l_sysid; in nlm_do_test()
419 lh->exclusive = (fl.l_type == F_WRLCK); in nlm_do_test()
420 lh->svid = fl.l_pid; in nlm_do_test()
423 lh->l_offset = fl.l_start; in nlm_do_test()
424 lh->l_len = fl.l_len; in nlm_do_test()
464 struct flock64 fl; in nlm_do_lock() local
537 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_lock()
554 error = nlm_vop_frlock(nvp->nv_vp, F_SETLK, &fl, flags, in nlm_do_lock()
557 DTRACE_PROBE3(setlk__res, struct flock64 *, &fl, in nlm_do_lock()
660 nlm_block(argp, host, nvp, rpcp, &fl, grant_cb); in nlm_do_lock()
781 struct flock64 fl; in nlm_do_cancel() local
817 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_cancel()
824 error = nlm_slreq_unregister(host, nvp, &fl); in nlm_do_cancel()
835 fl.l_type = F_UNLCK; in nlm_do_cancel()
836 error = nlm_vop_frlock(nvp->nv_vp, F_SETLK, &fl, in nlm_do_cancel()
878 struct flock64 fl; in nlm_do_unlock() local
918 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, F_UNLCK); in nlm_do_unlock()
923 error = nlm_vop_frlock(vp, F_SETLK, &fl, in nlm_do_unlock()