Lines Matching defs:argp

74 		    struct export_args *argp);
103 struct export_args *argp)
115 KASSERT(argp->ex_numsecflavors > 0,
117 KASSERT(argp->ex_numsecflavors < MAXSECFLAVORS,
127 if (argp->ex_addrlen == 0) {
134 np->netc_exflags = argp->ex_flags;
136 np->netc_anon->cr_uid = argp->ex_uid;
137 crsetgroups_fallback(np->netc_anon, argp->ex_ngroups,
138 argp->ex_groups, GID_NOGROUP);
141 np->netc_numsecflavors = argp->ex_numsecflavors;
142 bcopy(argp->ex_secflavors, np->netc_secflavors,
151 if (argp->ex_addrlen > MLEN) {
153 argp->ex_addrlen, MLEN);
158 i = sizeof(struct netcred) + argp->ex_addrlen + argp->ex_masklen;
161 if ((error = copyin(argp->ex_addr, saddr, argp->ex_addrlen)))
168 if (saddr->sa_len > argp->ex_addrlen)
169 saddr->sa_len = argp->ex_addrlen;
170 if (argp->ex_masklen) {
171 smask = (struct sockaddr *)((caddr_t)saddr + argp->ex_addrlen);
172 error = copyin(argp->ex_mask, smask, argp->ex_masklen);
175 if (smask->sa_len > argp->ex_masklen)
176 smask->sa_len = argp->ex_masklen;
213 np->netc_exflags = argp->ex_flags;
215 np->netc_anon->cr_uid = argp->ex_uid;
216 crsetgroups_fallback(np->netc_anon, argp->ex_ngroups, argp->ex_groups,
220 np->netc_numsecflavors = argp->ex_numsecflavors;
221 bcopy(argp->ex_secflavors, np->netc_secflavors,
295 * Struct export_args *argp is the variable used to twiddle options,
302 vfs_export(struct mount *mp, struct export_args *argp, bool do_exjail)
310 if ((argp->ex_flags & (MNT_DELEXPORT | MNT_EXPORTED)) == 0)
313 if ((argp->ex_flags & MNT_EXPORTED) != 0 &&
314 (argp->ex_numsecflavors < 0
315 || argp->ex_numsecflavors >= MAXSECFLAVORS))
322 if (argp->ex_flags & MNT_DELEXPORT) {
362 if (argp->ex_flags & MNT_EXPORTED) {
384 if (argp->ex_flags & MNT_EXPUBLIC) {
385 if ((error = vfs_setpublicfs(mp, nep, argp)) != 0) {
401 if (argp->ex_numsecflavors == 0) {
402 argp->ex_numsecflavors = 1;
403 argp->ex_secflavors[0] = AUTH_SYS;
405 if ((error = vfs_hang_addrlist(mp, nep, argp))) {
533 struct export_args *argp)
578 if (argp->ex_indexfile != NULL) {
582 error = copyinstr(argp->ex_indexfile, nfs_pub.np_index,