VFS_SET(9)
π VFS_SET(9) β from the Kernel Developer's Manual, but make it bestie-core β¨
okay so bestie, this is the VFS_SET(9) page from the Kernel Developer's Manual, and it's literally about setting up a loadable file system's vfsconf. no cap. π«Άπ
πΈ NAME πΈ
VFS_SET β set up a loadable file system's vfsconf π
β¨ SYNOPSIS β¨
bring in these headers first, bestie:
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/mount.h>
and the signature is exactly this, periodt:
void
VFS_SET(struct vfsops *vfsops, fsname, int flags);
π¦ DESCRIPTION π¦
VFS_SET() creates a vfsconf structure for the loadable module with the given vfsops, fsname and flags, then declares it by calling DECLARE_MODULE(9) using vfs_modevent() as the event handler. that's the whole plot. π
the possible values for the flags argument are:
VFCF_STATICβ the file system should be statically available in the kernel. periodt. πVFCF_NETWORKβ network exportable file system. iconic. πVFCF_READONLYβ does not support write operations. read-only icon behavior. πVFCF_SYNTHETICβ pseudo file system, data does not represent on-disk files. no on-disk files here, bestie. π«§VFCF_LOOPBACKβ loopback file system layer. πVFCF_UNICODEβ file names are stored as Unicode. unicode girlies rise. πΈVFCF_JAILβ can be mounted from within a jail ifallow.mountandallow.mount.<fsname>jail parameters are set. jail time, but only when the parameters say so. πVFCF_DELEGADMINβ supports delegated administration ifvfs.usermountsysctl is set to1. delegated admin era. πVFCF_SBDRYβ when in VFS method, the thread suspension is deferred to the user boundary upon arrival of stop action. stop action deferred, iykyk. πβ¨
π§ PSEUDOCODE π§
here's the pseudocode, literally:
/*
* Fill in the fields for which we have special methods.
* The others are initially null. This tells vfs to change them to
* pointers to vfs_std* functions during file system registration.
*/
static struct vfsops myfs_vfsops = {
.vfs_mount = myfs_mount,
.vfs_root = myfs_root,
.vfs_statfs = myfs_statfs,
.vfs_unmount = myfs_unmount,
};
VFS_SET(myfs_vfsops, myfs, 0);
π SEE ALSO π
go give these a look too, bestie:
π AUTHORS π
this manual page was written by Chad David <davidc@acns.ab.ca>. ty Chad, you ate. π
π source/version: Debian Β· date: August 16, 2018 Β· page: VFS_SET(9) β bye bestie, go slay that loadable file system! β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms