Lines Matching defs:knconf

208 	if (nargs->knconf) {
209 if (nargs->knconf->knc_protofmly)
210 kmem_free(nargs->knconf->knc_protofmly, KNC_STRSIZE);
211 if (nargs->knconf->knc_proto)
212 kmem_free(nargs->knconf->knc_proto, KNC_STRSIZE);
213 kmem_free(nargs->knconf, sizeof (*nargs->knconf));
214 nargs->knconf = NULL;
267 struct knetconfig *knconf; /* transport knetconfig structure */
305 knconf = kmem_zalloc(sizeof (*knconf), KM_SLEEP);
307 if (copyin(STRUCT_FGETP(args, knconf), STRUCT_BUF(knconf_tmp),
309 kmem_free(knconf, sizeof (*knconf));
313 knconf->knc_semantics = STRUCT_FGET(knconf_tmp, knc_semantics);
314 knconf->knc_protofmly = STRUCT_FGETP(knconf_tmp, knc_protofmly);
315 knconf->knc_proto = STRUCT_FGETP(knconf_tmp, knc_proto);
317 knconf->knc_rdev = expldev(STRUCT_FGET(knconf_tmp, knc_rdev));
319 knconf->knc_rdev = STRUCT_FGET(knconf_tmp, knc_rdev);
324 error = copyinstr(knconf->knc_protofmly, pf, KNC_STRSIZE, NULL);
328 kmem_free(knconf, sizeof (*knconf));
332 error = copyinstr(knconf->knc_proto, p, KNC_STRSIZE, NULL);
336 kmem_free(knconf, sizeof (*knconf));
341 knconf->knc_protofmly = pf;
342 knconf->knc_proto = p;
344 nargs->knconf = knconf;
504 struct knetconfig *knconf; /* transport knetconfig structure */
637 if ((strlen(args->knconf->knc_protofmly) >= KNC_STRSIZE) ||
638 (strlen(args->knconf->knc_proto) >= KNC_STRSIZE)) {
665 svp->sv_knconf = args->knconf;
666 args->knconf = NULL;
708 * knconf with rdma specific knconf and free the orignal.
722 * If successful, hijack, the orignal knconf and
727 knconf = rdma_knconf;
874 * duplicate the knconf information for the
877 data->knconf = kmem_alloc(sizeof (*knconf), KM_SLEEP);
878 *data->knconf = *knconf;
881 bcopy(knconf->knc_protofmly, pf, KNC_STRSIZE);
882 bcopy(knconf->knc_proto, pf, KNC_STRSIZE);
883 data->knconf->knc_protofmly = pf;
884 data->knconf->knc_proto = p;
1714 args.knconf = svp->sv_knconf;