may_umount_tree(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is may_umount_tree β€” it's giving "check if a mount tree is busy" energy πŸ’… like literally, that's the whole job ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int may_umount_tree (struct vfsmount *m );

that's it, that's the function, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • m β€” the root of the mount tree 🌳 like the actual top of the whole tree structure, okurrr

πŸ’– DESCRIPTION πŸ’–

so the way this works is: you call may_umount_tree to check whether a whole tree of mounts has anything busy going on in there πŸ‘€

and what counts as busy? glad you asked bestie, the vibes check is:

  • any open files πŸ“‚
  • pwds (yep, process working directories are holding on 😭)
  • chroots
  • sub mounts that are busy

if any of those are hanging around, the tree is busy, and that is literally the whole vibe check πŸ™ˆβœ¨


🧚 SEE ALSO 🧚

okay this part is the friend group, and they're all in the kernel file ./fs/namespace.c β€” go say hi πŸ‘‹πŸ’œ


and that's the page!! mwah πŸ’‹ before you go β€” this one came from the source path ./fs, dated October 2026, and it's filed under may_umount_tree(9) in the kernel API manual πŸ“–βœ¨ slay, go touch some mounts (safely) πŸŽ€

πŸ“¦ where this page comes from