Lines Matching defs:new_path
79 * a prom-compatible path and return the value of new_path. If the
80 * caller specifies new_path as NULL, we allocate an appropriately
81 * sized new_path on behalf of the caller. If the caller invokes this
82 * function with new_path = NULL, they must do so from a context in
89 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len)
91 if (new_path != NULL) {
92 (void) snprintf(new_path, *len, "%s", cur_path);
93 return (new_path);
96 new_path = kmem_alloc(*len, KM_SLEEP);
97 (void) snprintf(new_path, *len, "%s", cur_path);
98 return (new_path);