Lines Matching refs:nl
136 struct nmlist *nl; in nmlist_add() local
146 for (; (nl = *nlhp) != NULL; nlhp = &nl->nl_next) in nmlist_add()
150 if ((nl = malloc(sizeof (*nl))) == NULL) in nmlist_add()
153 if ((nl->nl_devname = strdup(path)) == NULL) { in nmlist_add()
154 free(nl); in nmlist_add()
157 nl->nl_next = NULL; in nmlist_add()
158 nl->nl_dev = dev; in nmlist_add()
161 *nlhp = nl; in nmlist_add()
162 return (nl); in nmlist_add()
234 struct nmlist *nl; in devid_deviceid_to_nmlist() local
319 for (nl = nlh, nret = 0; nl; nl = nl->nl_next) in devid_deviceid_to_nmlist()
329 for (nl = nlh, rl = *retlist; nl; nl = nl->nl_next, rl++) { in devid_deviceid_to_nmlist()
330 rl->devname = nl->nl_devname; in devid_deviceid_to_nmlist()
331 rl->dev = nl->nl_dev; in devid_deviceid_to_nmlist()
339 while ((nl = nlh) != NULL) { /* free the nmlist */ in devid_deviceid_to_nmlist()
340 nlh = nl->nl_next; in devid_deviceid_to_nmlist()
341 free(nl); in devid_deviceid_to_nmlist()