tmpfs_dirent
tmpfs_dircookie(struct tmpfs_dirent *de)
const char *, uint16_t, struct tmpfs_dirent **);
void tmpfs_free_dirent(struct tmpfs_mount *, struct tmpfs_dirent *);
void tmpfs_dir_attach_locked(struct tmpfs_node *, struct tmpfs_dirent *);
void tmpfs_dir_detach_locked(struct tmpfs_node *, struct tmpfs_dirent *);
struct tmpfs_dirent * tmpfs_dir_lookup(struct tmpfs_node *node,
struct tmpfs_dirent * tmpfs_dir_lookupbycookie(struct tmpfs_node *, off_t,
KKASSERT((node)->tn_size % sizeof(struct tmpfs_dirent) == 0); \
RB_ENTRY(tmpfs_dirent) rb_node;
RB_ENTRY(tmpfs_dirent) rb_cookienode;
RB_HEAD(tmpfs_dirtree, tmpfs_dirent);
RB_PROTOTYPE(tmpfs_dirtree, tmpfs_dirent, rb_node,
RB_HEAD(tmpfs_dirtree_cookie, tmpfs_dirent);
RB_PROTOTYPE(tmpfs_dirtree_cookie, tmpfs_dirent, rb_cookienode,
tmpfs_dirtree_compare(struct tmpfs_dirent *a, struct tmpfs_dirent *b)
tmpfs_dirtree_compare_cookie(struct tmpfs_dirent *a, struct tmpfs_dirent *b)
const char *name, uint16_t len, struct tmpfs_dirent **de)
struct tmpfs_dirent *nde;
nde = kmalloc_obj(sizeof(struct tmpfs_dirent),
tmpfs_free_dirent(struct tmpfs_mount *tmp, struct tmpfs_dirent *de)
struct tmpfs_dirent *de;
static int tmpfs_dirtree_compare(struct tmpfs_dirent *a,
tmpfs_dir_attach_locked(struct tmpfs_node *dnode, struct tmpfs_dirent *de)
struct tmpfs_dirent *b);
struct tmpfs_dirent *de2;
RB_GENERATE(tmpfs_dirtree, tmpfs_dirent, rb_node, tmpfs_dirtree_compare);
dnode->tn_size += sizeof(struct tmpfs_dirent);
static int tmpfs_dirtree_compare_cookie(struct tmpfs_dirent *a,
tmpfs_dir_detach_locked(struct tmpfs_node *dnode, struct tmpfs_dirent *de)
struct tmpfs_dirent *b);
dnode->tn_size -= sizeof(struct tmpfs_dirent);
RB_GENERATE(tmpfs_dirtree_cookie, tmpfs_dirent,
struct tmpfs_dirent *
struct tmpfs_dirent *de;
struct tmpfs_dirent wanted;
struct tmpfs_dirent *de;
struct tmpfs_dirent *de;
lubycookie_cmp(struct tmpfs_dirent *de, void *arg)
lubycookie_callback(struct tmpfs_dirent *de, void *arg)
struct tmpfs_dirent *
struct tmpfs_dirent *cdent = tmpfs_cookiedir(cookie);
struct tmpfs_dirent *last;
struct tmpfs_dirent *tmp;
struct tmpfs_dirent *de;
sizeof(struct tmpfs_dirent));
struct tmpfs_dirent *de;
struct tmpfs_dirent *de;
struct tmpfs_dirent *de;
struct tmpfs_dirent *de;
struct tmpfs_dirent *de, *tde, *de2;
struct tmpfs_dirent *de;
struct tmpfs_dirent *de = NULL;