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