d_same_name(9)
π d_same_name(9) β NAME β¨
okay bestie, this is the d_same_name(9) page from the Kernel API Manual, and it's giving "tiny dentry name comparison function that knows exactly what it is." The name? d_same_name β compare dentry name with case-exact name. Periodt.
π SYNOPSIS π
Here's the signature, copy it exactly because we do not freestyle C types in this house:
bool d_same_name (const struct dentry *dentry , const struct dentry
*parent , const struct qstr *name );
πΈ ARGUMENTS πΈ
dentryβ the negative dentry that was passed to the parent's lookup func. That's the dentry being checked, bestie. πparentβ parent dentry. Yes, the parent dentry. The one doing the parenting.nameβ the case-exact name to be associated with the returned dentry. Case-exact is the vibe: exact case, no lowercase chaos.
π₯ RETURN π₯
She returns true if names are same, or false. That's it. The whole return section is a vibe check. π
π¦ SEE ALSO π¦
Kernel file ./fs/dcache.c is the source file getting the shoutout, and these references are all in the group chat:
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_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)
okay bye bestie π the footer says source/version ./fs and date October 2026, and the manual page id is d_same_name(9). no cap, that's the whole page. π«Άβ¨
π¦ 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