path_is_mountpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ path_is_mountpoint(9) β€” the Kernel API Manual, bestie edition πŸ¦‹

okay so real talk, this one lives in the <pink>Kernel API Manual</pink> and it is so much more chill than it sounds, i promise πŸ’–


✨ NAME ✨

path_is_mountpoint β€” checks if a path is a mount in the current namespace. that's it. that's the whole vibe check πŸ”₯


🌸 SYNOPSIS 🌸

bool path_is_mountpoint (const struct path *path );

πŸŽ€ ARGUMENTS πŸŽ€

  • path β€” the path to check. like, the actual thing u want the answer about πŸ‘€

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea, bestie β˜• d_mountpoint can only be used reliably to establish if a dentry is not mounted in any namespace β€” and that common case is handled inline. iconic, efficient, we love that for it 🫢

but d_mountpoint isn't aware of the possibility there may be multiple mounts using a given dentry in a different namespace. yeah. it doesn't know. it's living its truth and that truth is incomplete 😭

so this function checks if the passed-in path is a mountpoint rather than the dentry alone. literally the whole point. main character energy ✨


🌈 SEE ALSO 🌈

Kernel file ./fs/namespace.c and the whole squad:


and that's the whole page, no cap 🧚 this cutie came straight out of ./fs and it's dated October 2026 β€” go forth and check ur mountpoints, bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from