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