Lines Matching defs:prom_list
148 prom_list_free(char **prom_list)
152 if (!prom_list)
155 while (prom_list[i]) {
156 free(prom_list[i]);
159 free(prom_list);
163 devfs_get_prom_name_list(const char *dev_name, char ***prom_list)
166 int count = 0; /* # of slots we will need in prom_list */
175 if (prom_list == NULL)
218 *prom_list = list;
227 * order. The list is returned in prom_list
232 devfs_get_prom_names(const char *dev_name, uint_t options, char ***prom_list)
235 int count = 0; /* # of slots we will need in prom_list */
246 if (prom_list == NULL) {
279 count++; /* # of slots we will need in prom_list */
306 *prom_list = list;
418 char **prom_list = NULL;
454 ret = devfs_get_prom_name_list(dev_name, &prom_list);
463 while (prom_list && prom_list[i]) {
465 ret = prom_dev_to_alias(prom_list[i], 0,
469 prom_list_free(prom_list);
481 prom_list[i]);
486 (void) snprintf(ptr, len, "%s ", prom_list[i]);
496 prom_list_free(prom_list);