VFS_MOUNTEDFROM(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… 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