VFS_MOUNTEDFROM(9)
π VFS_MOUNTEDFROM(9) π
From the Kernel Developer's Manual β okay bestie, this page is all about one tiny function and it's lowkey iconic. Let's get into it. π¦
πΈ NAME πΈ
vfs_mountedfrom β sets the mounted from name for a mount. That's the whole vibe: one function, one job, no cap. π
π¦ SYNOPSIS π¦
First, include these:
#include <sys/param.h>
#include <sys/mount.h>
Then the signature is literally:
void
vfs_mountedfrom(struct mount *mp, const char *from);
β¨ DESCRIPTION β¨
Okay so vfs_mountedfrom() sets the mounted from name for a mount. This value is used by statfs(2) to fill in f_mntfromname. That's the main character behavior right there. π
In most cases, from is the device that contains the file system. But in the case of a pseudo file system, it could be a descriptive name like "devfs" or "procfs". Iconic, honestly. π
π AUTHORS π
This manual page was written by Chad David <davidc@acns.ab.ca>. Slay. π«Ά
Okay that's the whole page, bestie. This cutie came from Debian, dated February 25, 2008, and it lives under the VFS_MOUNTEDFROM(9) manual tag. Bye! πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2008 Chad David <davidc@acns.ab.ca>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms