VFINDDEV(9)

πŸ“¦ in nixpkgs unstable

🌸 VFINDDEV(9) 🌸

okay bestie, welcome to the Kernel Developer's Manual corner of the group chat. this one is VFINDDEV(9), and it's giving β€œshort and iconic, no notes.” πŸ’…


✨ NAME ✨

vfinddev β€” lookup a vnode by device number. periodt. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

here's the literal summoning circle, keep the formatting exactly as-is:

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

int
vfinddev(dev_t dev, enum vtype type, struct vnode **vpp);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the vfinddev() function returns a pointer to the vnode of the device represented by the device number dev and of type type in vpp. yes, that is literally the whole mission. no cap. 🫢


πŸ”₯ RETURN VALUES πŸ”₯

the vibe check on vfinddev() is:

  • 1 β€” a corresponding vnode was found, slay ✨
  • 0 β€” otherwise, bestie 😭

🌈 SEE ALSO 🌈

iykyk, go read that one next. πŸ‘‘


πŸ’œ HISTORY πŸ’œ

fun fact from the archives: this man page was originally written for OpenBSD. iconic behavior, honestly. πŸŽ€


xoxo, your Debian bestie πŸ’– β€” dropping this from June 4, 2013, with all the love and absolutely no cap. πŸ¦‹βœ¨

πŸ“¦ where this page comes from