d_rehash(9)
π d_rehash(9) β the Kernel API Manual, but make it make sense
okay so bestie, you're in the d_rehash chapter of the Kernel API Manual and honestly? it's a tiny one. one function, one argument, one job. we love a low-maintenance icon β¨
π NAME
d_rehash β puts an entry back into the hash π«Ά
like, re-hashes it. the name is literally the whole plot, no cap.
β¨ SYNOPSIS
void d_rehash (struct dentry * entry );
that's it. that's the whole signature. void return, so nothing comes back at you β she does her thing and leaves πΈ
π§ ARGUMENTS
entryβ the dentry you want to add to the hash π that's the one and only thing she needs from you.
π₯ DESCRIPTION
so here's the vibe: d_rehash adds a dentry to the hash according to its name.
read that again, because that's the whole function. she looks at the dentry's name and hashes it based on that. iconic behaviour, honestly β name-based, no drama, no extra steps π
π SEE ALSO
the kernel file ./fs/dcache.c and, like, the entire dcache friend group π β go say hi to all of them:
d_drop(9)dentry_kill(9)__move_to_shrink_list(9)d_find_any_alias(9)d_find_alias(9)prune_dcache_sb(9)shrink_dcache_sb(9)enum d_walk_ret(9)d_walk(9)path_has_submounts(9)shrink_dcache_tree(9)d_invalidate(9)__d_alloc(9)d_alloc(9)d_alloc_pseudo(9)d_instantiate(9)d_obtain_alias(9)d_obtain_root(9)d_add_ci(9)d_same_name(9)__d_lookup_rcu(9)d_lookup(9)__d_lookup(9)d_hash_and_lookup(9)d_delete(9)d_add(9)d_ancestor(9)d_splice_alias(9)is_subdir(9)
π«Ά that's the whole page, bestie. no flags, no environment variables, no exit statuses, no bugs section β just a very focused little function that knows exactly what it is. main character energy fr fr π
and that's a wrap on this one, babes π brought to you by ./fs, dated October 2026 β see you in the next manpage, mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms