Lines Matching refs:shr
1077 nlm_init_shrlock(struct shrlock *shr, in nlm_init_shrlock() argument
1084 shr->s_access = 0; in nlm_init_shrlock()
1087 shr->s_access = F_RDACC; in nlm_init_shrlock()
1090 shr->s_access = F_WRACC; in nlm_init_shrlock()
1093 shr->s_access = F_RWACC; in nlm_init_shrlock()
1100 shr->s_deny = F_NODNY; in nlm_init_shrlock()
1103 shr->s_deny = F_RDDNY; in nlm_init_shrlock()
1106 shr->s_deny = F_WRDNY; in nlm_init_shrlock()
1109 shr->s_deny = F_RWDNY; in nlm_init_shrlock()
1113 shr->s_sysid = host->nh_sysid; in nlm_init_shrlock()
1114 shr->s_pid = 0; in nlm_init_shrlock()
1115 shr->s_own_len = nshare->oh.n_len; in nlm_init_shrlock()
1116 shr->s_owner = nshare->oh.n_bytes; in nlm_init_shrlock()
1134 struct shrlock shr; in nlm_do_share() local
1168 nlm_init_shrlock(&shr, &argp->share, host); in nlm_do_share()
1169 error = VOP_SHRLOCK(nvp->nv_vp, F_SHARE, &shr, in nlm_do_share()
1201 struct shrlock shr; in nlm_do_unshare() local
1230 nlm_init_shrlock(&shr, &argp->share, host); in nlm_do_unshare()
1231 error = VOP_SHRLOCK(vp, F_UNSHARE, &shr, in nlm_do_unshare()