VFS_ROOTMOUNTALLOC(9)

πŸ’– VFS_ROOTMOUNTALLOC(9) πŸ’–

okay bestie, so this is a Kernel Developer's Manual page, section 9 β€” yes, the big-kid section, the kernel-functions one πŸ‘‘


✨ NAME ✨

vfs_rootmountalloc β€” allocate a root mount structure 🌸


πŸŽ€ SYNOPSIS πŸŽ€

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

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, vfs_rootmountalloc() allocates a mount structure, right? and it's initialized from the vfsconf type that matches fstypename. that's it. that's the whole vibe. it finds the matching vfsconf type, uses it to set up the mount structure, and hands it back to you. πŸ’…


⭐ RETURN VALUES ⭐

  • if it ate, 0 is returned and mpp points to the newly allocated mount structure πŸŽ‰
  • if it did not eat, ENODEV comes back β€” and that happens when fstypename is NULL or invalid 😭

🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Chad David <davidc@acns.ab.ca> β€” shoutout to the icon, no cap 🫢


and that's the whole page, bestie!! this one came from the Debian crew and it's dated November 21, 2001 β€” vintage, honestly, it's giving Y2K-era kernel lore 🧚✨ go mount something root-y, ily, bye!! πŸ’–πŸŒΈ

πŸ“¦ where this page comes from