VFS_UNBUSY(9)
π 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 yourvfs_busy(9)with avfs_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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms