VFS_UNMOUNT(9)
π VFS_UNMOUNT π
okay bestie, welcome to the Kernel Developer's Manual (yes that's the section, 9, kernel-land, we're deep in the machine rn π«Ά) β and today's main character is VFS_UNMOUNT, the macro whose whole entire job is unmounting a file system. slay. β¨
πΈ NAME πΈ
VFS_UNMOUNT β unmount a file system. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
okay so before you can even speak to this thing you gotta include the sacred texts, fr fr:
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/vnode.h>
int
VFS_UNMOUNT(struct mount *mp, int mntflags);
like, no cap, those three includes are non-negotiable. it's giving "do your homework first" energy π
π¦ DESCRIPTION π¦
the VFS_UNMOUNT() macro unmounts a file system. that's the whole plot. unmount. file system. gone. bye. π
now, the arguments it expects, and bestie it expects exactly these:
mpβ the file system. that's the one you're sending off into the sunset. πmntflagsβ a bit-mask of flags for the unmount operation. think of it like the settings menu for your goodbye. the flags currently supported byVFS_UNMOUNT()are:MNT_FORCEβ open files are forcibly closed before the file system is unmounted. > β οΈ yeah so, forcibly. like, not asked politely. not given a warning. just yanked. so know what you're doing before you flip this one, mkay? π
π₯ SEE ALSO π₯
go read these too, they're all in the same friend group:
π AUTHORS π
this manual page was written by Doug Rabson. iconic behavior, honestly. π«Ά
and that's the whole page, bestie!! this little baddie comes from the Debian crew and it's dated May 23, 2009 β vintage, but she still ate. π now go unmount something responsibly. mwah. π β¨
π¦ 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) 1996 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms