path_has_submounts(9)
hey bestie, welcome to path_has_submounts(9) from the Kernel API Manual β this oneβs short, sweet, and very βdoes this path have mount-point energy?β π
β¨
π NAME π
path_has_submounts β check for mounts over a dentry in the current namespace. Thatβs the whole assignment, no cap. π«Ά
πΈ SYNOPSIS πΈ
int path_has_submounts (const struct path *parent );
π¦ ARGUMENTS π¦
parentβ path to check. literally the path bestie, thatβs it π
β¨ DESCRIPTION β¨
Return true if the parent or its subdirectories contain a mount point in the current namespace. thatβs the vibe check: parent path, subdirectories, mount point, current namespace β all of it matters π₯
π SEE ALSO π
Kernel file ./fs/dcache.c β and the whole dcache friend group, in all their exact-name glory:
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)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_rehash(9)d_add(9)d_ancestor(9)d_splice_alias(9)is_subdir(9)
okay bye bestie π this page came from ./fs, dated October 2026, and itβs path_has_submounts(9) β mwah, stay iconic β¨π
π¦ 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