VDEVGONE(9)
π 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 byminlandminhare 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
- nixpkgs unstable: cvs-export
- Copyright (c) 2002 Peter Werner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms