VFS_UNBUSY(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… VFS_UNBUSY β€” unbusy a mount point πŸ’…

okay so bestie, welcome to VFS_UNBUSY(9), aka section 9 of the Kernel Developer's Manual. yes you, a kernel dev, slaying. let's get into it ✨


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the headers, no cap:

#include <sys/param.h>
#include <sys/mount.h>

then the actual function signature, literally exactly this:

void
vfs_unbusy(struct mount *mp);

like, returns void, takes one pointer, that's the whole vibe πŸŽ€


✨ DESCRIPTION ✨

so vfs_unbusy() does exactly what it says on the tin β€” it un-busies a mount point 😌 the way it works is it just decrements the reference count of a mount point. that's it. that's the function.

and like, lowkey the important part: that reference count was typically incremented earlier by calling vfs_busy(9) before this call. so it's giving "put it back the way you found it" energy. you busy it, you unbusy it. balance. harmony. πŸ¦‹

here's the argument, bestie:

  • mp β€” the mount point to unbusy. the one. the main character. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

  • vfs_busy(9) β€” the other half of this whole situation, iykyk

🫢 AUTHORS 🫢

this manual page was written by Chad David <davidc@acns.ab.ca>. iconic of him honestly, thank you Chad πŸ’œ


reminder bestie: always pair your vfs_busy(9) with a vfs_unbusy() β€” leaving a mount point busy forever is not the vibe πŸ”₯

mwah, that's the page! this lil gem came from Debian, dated June 14, 2010, so it's been serving looks for a minute 🌈✨ go forth and unbusy those mounts, you absolute kernel legend πŸ§šπŸ’–

πŸ“¦ where this page comes from