Searched refs:cpybuf (Results 1 – 1 of 1) sorted by relevance
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunndi.c | 315 char *cpybuf; in ndi_dc_allochdl() local 345 cpybuf = kmem_alloc(MAXNAMELEN, KM_SLEEP); in ndi_dc_allochdl() 346 if (copyinstr(dcp->c_nodename, cpybuf, MAXNAMELEN, 0) != 0) { in ndi_dc_allochdl() 347 kmem_free(cpybuf, MAXNAMELEN); in ndi_dc_allochdl() 351 cpybuf[MAXNAMELEN - 1] = '\0'; in ndi_dc_allochdl() 352 dcp->c_nodename = cpybuf; in ndi_dc_allochdl() 356 cpybuf = kmem_alloc(MAXNAMELEN, KM_SLEEP); in ndi_dc_allochdl() 357 if (copyinstr(dcp->c_unitaddr, cpybuf, MAXNAMELEN, 0) != 0) { in ndi_dc_allochdl() 358 kmem_free(cpybuf, MAXNAMELEN); in ndi_dc_allochdl() 364 cpybuf[MAXNAMELEN - 1] = '\0'; in ndi_dc_allochdl() [all …]
|