d_invalidate(9)
π d_invalidate β name drop time
okay so bestie, we're in section 9 of the kernel API manual and the star of the show is d_invalidate. say hi π
πΈ SYNOPSIS
void d_invalidate (struct dentry *dentry );
that's it. that's the whole vibe. β¨
π ARGUMENTS
struct dentry *dentryβ the dentry you want to invalidate, aka detach, prune and drop. yes all three. it's giving triple threat π
π₯ SEE ALSO
bestie the friend group is huge, brace yourself, we're listing every single one π«Ά
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_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_rehash(9), d_add(9), d_ancestor(9), d_splice_alias(9), is_subdir(9)
and where does all this live? in the kernel file ./fs/dcache.c β that's the address, iykyk π
ngl, that's a lot of see-alsos. but every single one is invited to the party, no cap. π
that's the whole page bestie, you ate that π
kisses, this has been the Kernel API Manual, filed under ./fs, dated October 2026. go invalidate something (responsibly) ππ
π¦ 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