Lines Matching defs:knconf

200 	if (nargs->knconf) {
201 if (nargs->knconf->knc_protofmly)
202 kmem_free(nargs->knconf->knc_protofmly, KNC_STRSIZE);
203 if (nargs->knconf->knc_proto)
204 kmem_free(nargs->knconf->knc_proto, KNC_STRSIZE);
205 kmem_free(nargs->knconf, sizeof (*nargs->knconf));
206 nargs->knconf = NULL;
259 struct knetconfig *knconf; /* transport knetconfig structure */
295 knconf = kmem_zalloc(sizeof (*knconf), KM_SLEEP);
297 if (copyin(STRUCT_FGETP(args, knconf), STRUCT_BUF(knconf_tmp),
299 kmem_free(knconf, sizeof (*knconf));
303 knconf->knc_semantics = STRUCT_FGET(knconf_tmp, knc_semantics);
304 knconf->knc_protofmly = STRUCT_FGETP(knconf_tmp, knc_protofmly);
305 knconf->knc_proto = STRUCT_FGETP(knconf_tmp, knc_proto);
307 knconf->knc_rdev = expldev(STRUCT_FGET(knconf_tmp, knc_rdev));
309 knconf->knc_rdev = STRUCT_FGET(knconf_tmp, knc_rdev);
314 error = copyinstr(knconf->knc_protofmly, pf, KNC_STRSIZE, NULL);
318 kmem_free(knconf, sizeof (*knconf));
322 error = copyinstr(knconf->knc_proto, p, KNC_STRSIZE, NULL);
326 kmem_free(knconf, sizeof (*knconf));
331 knconf->knc_protofmly = pf;
332 knconf->knc_proto = p;
334 nargs->knconf = knconf;
487 struct knetconfig *knconf; /* transport knetconfig structure */
611 if ((strlen(args->knconf->knc_protofmly) >= KNC_STRSIZE) ||
612 (strlen(args->knconf->knc_proto) >= KNC_STRSIZE)) {
635 svp->sv_knconf = args->knconf;
636 args->knconf = NULL;
689 * knconf with rdma specific knconf and free the orignal.
703 * If successful, hijack the orignal knconf and
708 knconf = rdma_knconf;
844 * duplicate the knconf information for the
847 data->knconf = kmem_alloc(sizeof (*knconf), KM_SLEEP);
848 *data->knconf = *knconf;
851 bcopy(knconf->knc_protofmly, pf, KNC_STRSIZE);
852 bcopy(knconf->knc_proto, pf, KNC_STRSIZE);
853 data->knconf->knc_protofmly = pf;
854 data->knconf->knc_proto = p;
1709 args.knconf = svp->sv_knconf;