Lines Matching defs:nentry
1748 deventry_t *dentry = NULL, *nentry = NULL, *pentry = NULL;
1784 for (nentry = dentry; nentry != NULL; nentry = nentry->next) {
1785 pentry = nentry;
1786 (void) sscanf(nentry->devinfo.devname, "%*[a-z]%d", &instance);
1787 if (nentry->devinfo.instance == new_instance)
1795 if (nentry == NULL) {
1805 if ((nentry = (deventry_t *)malloc(sizeof (deventry_t))) ==
1809 pentry->next = nentry;
1811 nentry->devinfo.devname = strdup(dname);
1812 nentry->devinfo.devtype = dtype;
1813 nentry->devinfo.devauths = DEFAULT_DEV_ALLOC_AUTH;
1814 nentry->devinfo.devexec = dexec;
1815 nentry->devinfo.instance = new_instance;
1825 if (da_defs = getdadeftype(nentry->devinfo.devtype)) {
1832 nentry->devinfo.devauths = strdup(kval);
1834 nentry->devinfo.devexec = strdup(kval);
1847 nentry->devinfo.devopts = kval;
1849 nentry->devinfo.devlist = NULL;
1850 nentry->next = NULL;
1854 if (nentry->devinfo.devlist) {
1855 plen = strlen(nentry->devinfo.devlist);
1861 if ((nentry->devinfo.devlist =
1862 (char *)realloc(nentry->devinfo.devlist, nlen)) == NULL) {
1864 free(nentry->devinfo.devname);
1865 free(nentry);
1873 (void) snprintf(nentry->devinfo.devlist, nlen, "%s", link);
1875 (void) snprintf(nentry->devinfo.devlist + plen, nlen - plen,
1883 dlist->audio = nentry;
1885 dlist->cd = nentry;
1887 dlist->floppy = nentry;
1889 dlist->tape = nentry;
1891 dlist->rmdisk = nentry;