VDEVGONE(9)

πŸ“¦ in nixpkgs unstable

πŸ’… VDEVGONE(9) β€” the kernel dev manual, bestie edition πŸŽ€

okay so this is vdevgone from the Kernel Developer's Manual and it's lowkey iconic for how much chaos it prevents. sit down, grab a strawberry drink πŸ“, we're learning kernel stuff.


✨ NAME ✨

vdevgone β€” revoke all specified minor-numbered vnodes for a device. yes, all of them. she's thorough πŸ’…


🌸 SYNOPSIS 🌸

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

void
vdevgone(int maj, int minl, int minh, enum vtype type);

literally just include those two headers and call her. that's it. no cap 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so the vdevgone() function will revoke all the vnodes that correspond to the specified minor number range, for the device whose major number is maj and whose type is type. the way that it just... cleans up the whole range. obsessed 😭✨

Its arguments are:

  • maj β€” the major number of the device. she's the main character here πŸ‘‘
  • minl β€” the lowest minor number for the device to be revoked. the bottom of the range, bestie ⬇️
  • minh β€” the highest minor number for the device to be revoked. the top of the range ⬆️
  • type β€” the type of the device, and this must be one of these two, no improvising πŸ™ˆ:
    • VBLK β€” device is a block device 🧱
    • VCHR β€” device is a character device πŸŽ€
heads up! the endpoints specified by minl and minh are inclusive. so both ends are in the club, they both get an invite πŸ’Œ

πŸ‘€ SEE ALSO πŸ‘€

go read those, iykyk πŸ’œ


🌈 HISTORY 🌈

this man page was originally written for OpenBSD. a little cross-platform moment, we love to see it πŸ¦‹


sign-off bestie πŸ’– β€” this page came to you from Debian, dated November 14, 2020, and the page itself is VDEVGONE(9). slay, go revoke some vnodes responsibly πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from