Lines Matching defs:nde

909 	struct tmpfs_dirent *nde;
911 nde = malloc(sizeof(*nde), M_TMPFSDIR, M_WAITOK);
912 nde->td_node = node;
914 nde->ud.td_name = malloc(len, M_TMPFSNAME, M_WAITOK);
915 tmpfs_dirent_init(nde, name, len);
917 nde->td_namelen = 0;
921 *de = nde;
1415 * Attach duplicate-cookie directory entry nde to dnode and insert to dupindex
1420 struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde)
1429 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN;
1431 nde->td_cookie = de->td_cookie + 1;
1432 MPASS(tmpfs_dirent_dup(nde));
1433 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries);
1434 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1441 * after inserting nde.
1451 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN;
1452 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries);
1453 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1462 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MAX;
1463 LIST_INSERT_HEAD(dupindex, nde,
1465 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1471 nde->td_cookie = de->td_cookie + 1;
1472 MPASS(tmpfs_dirent_dup(nde));
1473 MPASS(pde->td_cookie > nde->td_cookie);
1474 MPASS(nde->td_cookie > de->td_cookie);
1475 LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries);
1476 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1490 struct tmpfs_dirent *xde, *nde;
1512 &nde);
1513 /* *nde = *xde; XXX gcc 4.2.1 may generate invalid code. */
1514 memcpy(nde, xde, sizeof(*xde));
1519 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde);
1578 struct tmpfs_dirent *de, *dde, *nde;
1580 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) {
1687 struct tmpfs_dirent *de, *nde;
1799 nde = tmpfs_dir_next(node, &dc);
1800 d.d_off = tmpfs_dirent_cookie(nde);
1809 de = nde;