Lines Matching defs:argp

393 	struct nfs_args *args = NULL, *argp = NULL, *prev_argp = NULL;
447 argp = (struct nfs_args *)malloc(sizeof (*argp));
448 if (argp == NULL) {
453 memset(argp, 0, sizeof (*argp));
520 if (r = set_args(&mntflags, argp, host, mntp)) {
548 if (replicated && (argp->flags & NFSMNT_SOFT)) {
565 r = get_fh_via_pub(argp, host, path, url, use_pubfh,
579 argp->flags |= NFSMNT_PUBLIC;
605 r = get_fh(argp, host, path, &vers,
630 r = get_fh(argp, host, newpath, &vers,
646 if (argp->fh)
647 free(argp->fh);
648 if (argp->pathconf)
649 free(argp->pathconf);
650 free(argp);
671 if (!(argp->flags & NFSMNT_LLOCK) && vers == NFS_VERSION &&
672 remote_lock(host, argp->fh)) {
678 argp->flags |= NFSMNT_LLOCK;
682 argp->flags |= NFSMNT_LOOPBACK;
690 if (!(argp->flags & NFSMNT_KNCONF)) {
692 if (r = getaddr_nfs(argp, host, &nconf,
701 if (make_secure(argp, host, nconf, use_pubfh, vers) < 0) {
726 args = argp;
728 prev_argp->nfs_ext_u.nfs_extB.next = argp;
729 prev_argp = argp;
743 argp = NULL;
811 if (argp != NULL) {
817 args = argp;
819 prev_argp->nfs_ext_u.nfs_extB.next = argp;
821 argp = args;
822 while (argp != NULL) {
823 if (argp->fh)
824 free(argp->fh);
825 if (argp->pathconf)
826 free(argp->pathconf);
827 if (argp->knconf)
828 free(argp->knconf);
829 if (argp->addr) {
830 free(argp->addr->buf);
831 free(argp->addr);
833 nfs_free_secdata(argp->nfs_ext_u.nfs_extB.secdata);
834 if (argp->syncaddr) {
835 free(argp->syncaddr->buf);
836 free(argp->syncaddr);
838 if (argp->netname)
839 free(argp->netname);
840 prev_argp = argp;
841 argp = argp->nfs_ext_u.nfs_extB.next;