Lines Matching refs:cpybuf
311 char *cpybuf;
341 cpybuf = kmem_alloc(MAXNAMELEN, KM_SLEEP);
342 if (copyinstr(dcp->c_nodename, cpybuf, MAXNAMELEN, 0) != 0) {
343 kmem_free(cpybuf, MAXNAMELEN);
347 cpybuf[MAXNAMELEN - 1] = '\0';
348 dcp->c_nodename = cpybuf;
352 cpybuf = kmem_alloc(MAXNAMELEN, KM_SLEEP);
353 if (copyinstr(dcp->c_unitaddr, cpybuf, MAXNAMELEN, 0) != 0) {
354 kmem_free(cpybuf, MAXNAMELEN);
360 cpybuf[MAXNAMELEN - 1] = '\0';
361 dcp->c_unitaddr = cpybuf;
377 cpybuf = kmem_alloc(dcp->nvl_usersz, KM_SLEEP);
378 if (copyin(dcp->nvl_user, cpybuf, dcp->nvl_usersz) != 0) {
379 kmem_free(cpybuf, dcp->nvl_usersz);
388 if (nvlist_unpack(cpybuf, dcp->nvl_usersz, &dcp->nvl_user,
390 kmem_free(cpybuf, dcp->nvl_usersz);
401 kmem_free(cpybuf, dcp->nvl_usersz);