VFS_ROOTMOUNTALLOC(9)

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

🌸 NAME 🌸

okay so bestie, this is VFS_ROOTMOUNTALLOC(9) from the Kernel Developer's Manual, and it's literally the page for vfs_rootmountalloc. What does it do? It allocates a root mount structure. That's the whole assignment, and it ate. πŸ’…


✨ SYNOPSIS ✨

Here's the incantation β€” copy it exactly, don't freestyle the headers, bestie:

#include <sys/param.h>
#include <sys/mount.h>

int
vfs_rootmountalloc(char *fstypename, char *devname, struct mount **mpp);

πŸ’– DESCRIPTION πŸ’–

vfs_rootmountalloc() allocates a mount structure initialized from the vfsconf type that matches fstypename. That's the plot. It's giving "make me a mount structure, but base it on the vfsconf type matching fstypename." No cap. ✨


βœ… RETURN VALUES βœ…

If successful, 0 is returned and mpp points to the newly allocated mount structure. Slay. 🫢

ENODEV is returned if fstypename is NULL or invalid. That's the bad-vibes return, not a success β€” noted, bestie. 😭


πŸ¦‹ SEE ALSO πŸ¦‹

  • vfsconf(9) β€” the related manual page. Go read it too, iykyk. πŸ’œ

πŸŽ€ AUTHORS πŸŽ€

This manual page was written by Chad David <davidc@acns.ab.ca>. Respect the author, bestie. 🫢


xoxo πŸ’– Debian β€’ November 21, 2001 β€’ VFS_ROOTMOUNTALLOC(9) 🫢

πŸ“¦ where this page comes from