VFS_MOUNT(9)
π NAME π
okay so this is the VFS_MOUNT(9) page from the Kernel Developer's Manual, and it's literally about VFS_MOUNT β mount a file system. no cap, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/vnode.h>
int
VFS_MOUNT(struct mount *mp);
π¦ DESCRIPTION π¦
the VFS_MOUNT() macro mounts a file system into the system's namespace or updates the attributes of an already mounted file system. it's giving "two jobs, one icon" π
π the argument it expects π
mpβ Structure representing the file system.
okay so here's the tea: the VFS_MOUNT() macro is called both to mount new file systems and to change the attributes of an existing file system. like, it's versatile fr fr.
if the MNT_UPDATE flag is set in mp->mnt_flag, then the file system should update its internal state from the value of mp->mnt_flag. this can be used, for instance, to convert a read-only file system to read-write. it is also used by mountd(8) to update the NFS export information for the file system. the way that's a whole glow-up for your mount π«Ά
if the MNT_UPDATE flag is not specified, then this is a newly mounted file system. the file system code should allocate and initialize any private data needed to represent the file system β and yes bestie, it can use the mp->mnt_data field to store this information. slay πΎβ¨
π SEE ALSO π
go check out VFS(9) and vnode(9) β iykyk π₯
π AUTHORS π
This manual page was written by Doug Rabson. iconic behavior, honestly π
mwah π β this little page is from Debian, dated May 23, 2009. periodt π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1996 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms