Lines Matching refs:fl

111 	struct flock64 *fl,
127 nlm_init_flock(struct flock64 *fl, struct nlm4_lock *nl, in nlm_init_flock() argument
132 bzero(fl, sizeof (*fl)); in nlm_init_flock()
152 fl->l_type = type; in nlm_init_flock()
153 fl->l_whence = SEEK_SET; in nlm_init_flock()
154 fl->l_start = off; in nlm_init_flock()
155 fl->l_len = len; in nlm_init_flock()
156 fl->l_sysid = host->nh_sysid; in nlm_init_flock()
157 fl->l_pid = nl->svid; in nlm_init_flock()
338 struct flock64 fl; in nlm_do_test() local
372 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_test()
380 error = nlm_vop_frlock(vp, F_GETLK, &fl, in nlm_do_test()
388 if (fl.l_type == F_UNLCK) { in nlm_do_test()
409 if (fl.l_start > MAX_UOFF32) in nlm_do_test()
410 fl.l_start = MAX_UOFF32; in nlm_do_test()
411 maxlen = MAX_UOFF32 + 1 - fl.l_start; in nlm_do_test()
412 if (fl.l_len > maxlen) in nlm_do_test()
413 fl.l_len = maxlen; in nlm_do_test()
423 oh->oh_sysid = (sysid_t)fl.l_sysid; in nlm_do_test()
425 lh->exclusive = (fl.l_type == F_WRLCK); in nlm_do_test()
426 lh->svid = fl.l_pid; in nlm_do_test()
429 lh->l_offset = fl.l_start; in nlm_do_test()
430 lh->l_len = fl.l_len; in nlm_do_test()
479 struct flock64 fl; in nlm_do_lock() local
550 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_lock()
567 error = nlm_vop_frlock(nvp->nv_vp, F_SETLK, &fl, flags, in nlm_do_lock()
570 DTRACE_PROBE3(setlk__res, struct flock64 *, &fl, in nlm_do_lock()
675 nlm_block(argp, host, nvp, &fl, grant_cb, sr->rq_vers); in nlm_do_lock()
849 struct flock64 fl; in nlm_do_cancel() local
885 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, in nlm_do_cancel()
892 error = nlm_slreq_unregister(host, nvp, &fl); in nlm_do_cancel()
903 fl.l_type = F_UNLCK; in nlm_do_cancel()
904 error = nlm_vop_frlock(nvp->nv_vp, F_SETLK, &fl, in nlm_do_cancel()
946 struct flock64 fl; in nlm_do_unlock() local
986 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, F_UNLCK); in nlm_do_unlock()
991 error = nlm_vop_frlock(vp, F_SETLK, &fl, in nlm_do_unlock()