Lines Matching refs:knconf
208 if (nargs->knconf) { in nfs_free_args()
209 if (nargs->knconf->knc_protofmly) in nfs_free_args()
210 kmem_free(nargs->knconf->knc_protofmly, KNC_STRSIZE); in nfs_free_args()
211 if (nargs->knconf->knc_proto) in nfs_free_args()
212 kmem_free(nargs->knconf->knc_proto, KNC_STRSIZE); in nfs_free_args()
213 kmem_free(nargs->knconf, sizeof (*nargs->knconf)); in nfs_free_args()
214 nargs->knconf = NULL; in nfs_free_args()
267 struct knetconfig *knconf; /* transport knetconfig structure */ in nfs_copyin() local
305 knconf = kmem_zalloc(sizeof (*knconf), KM_SLEEP); in nfs_copyin()
307 if (copyin(STRUCT_FGETP(args, knconf), STRUCT_BUF(knconf_tmp), in nfs_copyin()
309 kmem_free(knconf, sizeof (*knconf)); in nfs_copyin()
313 knconf->knc_semantics = STRUCT_FGET(knconf_tmp, knc_semantics); in nfs_copyin()
314 knconf->knc_protofmly = STRUCT_FGETP(knconf_tmp, knc_protofmly); in nfs_copyin()
315 knconf->knc_proto = STRUCT_FGETP(knconf_tmp, knc_proto); in nfs_copyin()
317 knconf->knc_rdev = expldev(STRUCT_FGET(knconf_tmp, knc_rdev)); in nfs_copyin()
319 knconf->knc_rdev = STRUCT_FGET(knconf_tmp, knc_rdev); in nfs_copyin()
324 error = copyinstr(knconf->knc_protofmly, pf, KNC_STRSIZE, NULL); in nfs_copyin()
328 kmem_free(knconf, sizeof (*knconf)); in nfs_copyin()
332 error = copyinstr(knconf->knc_proto, p, KNC_STRSIZE, NULL); in nfs_copyin()
336 kmem_free(knconf, sizeof (*knconf)); in nfs_copyin()
341 knconf->knc_protofmly = pf; in nfs_copyin()
342 knconf->knc_proto = p; in nfs_copyin()
344 nargs->knconf = knconf; in nfs_copyin()
504 struct knetconfig *knconf; /* transport knetconfig structure */ in nfs_mount() local
637 if ((strlen(args->knconf->knc_protofmly) >= KNC_STRSIZE) || in nfs_mount()
638 (strlen(args->knconf->knc_proto) >= KNC_STRSIZE)) { in nfs_mount()
665 svp->sv_knconf = args->knconf; in nfs_mount()
666 args->knconf = NULL; in nfs_mount()
727 knconf = rdma_knconf; in nfs_mount()
877 data->knconf = kmem_alloc(sizeof (*knconf), KM_SLEEP); in nfs_mount()
878 *data->knconf = *knconf; in nfs_mount()
881 bcopy(knconf->knc_protofmly, pf, KNC_STRSIZE); in nfs_mount()
882 bcopy(knconf->knc_proto, pf, KNC_STRSIZE); in nfs_mount()
883 data->knconf->knc_protofmly = pf; in nfs_mount()
884 data->knconf->knc_proto = p; in nfs_mount()
1718 args.knconf = svp->sv_knconf; in nfs_mountroot()