Lines Matching defs:new_path
470 * a prom-compatible path and return the value of new_path. If the
471 * caller specifies new_path as NULL, we allocate an appropriately
472 * sized new_path on behalf of the caller. If the caller invokes this
473 * function with new_path = NULL, they must do so from a context in
477 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len)
483 ASSERT(new_path == NULL || *len >= MAXPATHLEN);
485 if (new_path == NULL) {
487 new_path = kmem_alloc(*len, KM_SLEEP);
493 rval = i_devname_to_promname(cur_path, new_path, *len);
500 (void) snprintf(new_path + strlen(new_path),
501 *len - strlen(new_path), "%s", ptr);
504 (void) snprintf(new_path, *len, "%s", cur_path);
507 return (new_path);