Home | History | Annotate | Download | only in nfs

Lines Matching refs:argp

500     const struct export_args *argp)
510 if (argp->ex_addrlen == 0) {
516 np->netc_exflags = argp->ex_flags;
517 kauth_uucred_to_cred(np->netc_anon, &argp->ex_anon);
522 if (argp->ex_addrlen > MLEN || argp->ex_masklen > MLEN)
525 i = sizeof(struct netcred) + argp->ex_addrlen + argp->ex_masklen;
529 error = copyin(argp->ex_addr, saddr, argp->ex_addrlen);
532 if (saddr->sa_len > argp->ex_addrlen)
533 saddr->sa_len = argp->ex_addrlen;
538 if (argp->ex_masklen) {
539 smask = (struct sockaddr *)((char *)saddr + argp->ex_addrlen);
540 error = copyin(argp->ex_mask, smask, argp->ex_masklen);
543 if (smask->sa_len > argp->ex_masklen)
544 smask->sa_len = argp->ex_masklen;
590 np->netc_exflags = argp->ex_flags;
591 kauth_uucred_to_cred(np->netc_anon, &argp->ex_anon);
594 if (enp->netc_exflags != argp->ex_flags ||
595 kauth_cred_uucmp(enp->netc_anon, &argp->ex_anon) != 0)
703 export(struct netexport *nep, const struct export_args *argp)
708 if (argp->ex_flags & MNT_EXPORTED) {
709 if (argp->ex_flags & MNT_EXPUBLIC) {
710 if ((error = setpublicfs(mp, nep, argp)) != 0)
714 if ((error = hang_addrlist(mp, nep, argp)) != 0)
727 const struct export_args *argp)
783 if (argp->ex_indexfile != NULL) {
785 error = copyinstr(argp->ex_indexfile, nfs_pub.np_index,