Lines Matching refs:flp
85 #define NLM_FLOCK_IS_SAFE(flp) \ argument
86 ((flp)->l_start == 0 && (flp)->l_len == 0)
662 struct flock64 *flp, int32_t orig_state) in nlm_reclaim_lock() argument
681 return (nlm_call_lock(vp, flp, hostp, &lm_fh, in nlm_reclaim_lock()
732 nlm_local_cancelk(vnode_t *vp, struct flock64 *flp) in nlm_local_cancelk() argument
734 flp->l_type = F_UNLCK; in nlm_local_cancelk()
735 (void) nlm_local_setlk(vp, flp, FREAD | FWRITE); in nlm_local_cancelk()
736 nlm_send_siglost(flp->l_pid); in nlm_local_cancelk()
748 nlm_call_lock(vnode_t *vp, struct flock64 *flp, in nlm_call_lock() argument
762 nlm_init_lock(&args.alock, flp, fhp, &oh); in nlm_call_lock()
764 args.exclusive = (flp->l_type == F_WRLCK); in nlm_call_lock()
860 if (!NLM_FLOCK_IS_SAFE(flp)) { in nlm_call_lock()
1036 nlm_call_unlock(struct flock64 *flp, struct nlm_host *hostp, in nlm_call_unlock() argument
1046 nlm_init_lock(&args.alock, flp, fhp, &oh); in nlm_call_unlock()
1106 nlm_call_test(struct flock64 *flp, struct nlm_host *hostp, in nlm_call_test() argument
1117 nlm_init_lock(&args.alock, flp, fhp, &oh); in nlm_call_test()
1119 args.exclusive = (flp->l_type == F_WRLCK); in nlm_call_test()
1163 flp->l_type = F_UNLCK; in nlm_call_test()
1168 flp->l_start = h.l_offset; in nlm_call_test()
1169 flp->l_len = h.l_len; in nlm_call_test()
1170 flp->l_pid = h.svid; in nlm_call_test()
1171 flp->l_type = (h.exclusive) ? F_WRLCK : F_RDLCK; in nlm_call_test()
1172 flp->l_whence = SEEK_SET; in nlm_call_test()
1173 flp->l_sysid = 0; in nlm_call_test()