VFS_BUSY(9)
π VFS_BUSY(9) β Kernel Developer's Manual π
okay bestie, so you know how mount points can't just β¨vanishβ¨ while somebody's still using them? yeah. this is the page about that. vfs_busy β marks a mount point as busy. it's giving bouncer-at-the-club energy, no cap. π
β¨ NAME β¨
vfs_busy β marks a mount point as busy π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/mount.h>
int
vfs_busy(struct mount *mp, int flags);
π¦ DESCRIPTION π¦
so vfs_busy() marks a mount point as busy by incrementing the reference count of a mount point. that's it, that's the main character move. π
it also delays unmounting by sleeping on mp if the MNTK_UNMOUNT flag is set in mp->mnt_kern_flag and the MBF_NOWAIT flag is not set. so if someone's mid-unmount, this function will literally take a lil nap until it's safe. not me being patient for once π
its arguments are:
mpβ the mount point to busy. π«Άflagsβ flags controlling howvfs_busy()should act. the whole vibe-check list:MBF_NOWAITβ do not sleep ifMNTK_UNMOUNTis set. (like, we're not waiting around, periodt.)MBF_MNTLSTLOCKβ drop themountlist_mtxin the critical path.
π₯ RETURN VALUES π₯
a 0 value is returned on success. slay. β¨
if the mount point is being unmounted and the MBF_NOWAIT flag is specified, ENOENT will be returned. so close, but no π
π ERRORS π
[ENOENT]β the mount point is being unmounted (MNTK_UNMOUNTis set). it's giving "sorry bestie, door's closed" π
π SEE ALSO π
vfs_unbusy(9)β the other half of the situationship π
π AUTHORS π
this manual page was written by Chad David <davidc@acns.ab.ca>. absolute icon, we thank him for his service π«‘
and that's the whole page, bestie! go forth and busy your mount points responsibly π§
Debian Β· February 11, 2013 Β· VFS_BUSY(9) π β ok that's the version + date + manual name, mwah, see you in the next manpage β¨ππΈ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms