VOP_REVOKE(9)
π VOP_REVOKE(9) β the kernel dev manual, bestie edition
okay so real talk, this one's from the Kernel Developer's Manual and it's all about taking access away from a device. dramatic? yes. necessary? also yes. let's get into it π
β¨ NAME β¨
VOP_REVOKE β revoke access to a device and its aliases
like, all of it. the whole vibe. gone. π₯
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_REVOKE(struct vnode *vp, int flags);
yes bestie, both includes, don't skip either one, sys/param.h and sys/vnode.h π
π¦ DESCRIPTION π¦
okay so VOP_REVOKE() does a little administrative slay: it revokes access to the device specified by vp, and also to any aliases that were created via make_dev_alias(9). all of them. the whole friend group π
and like, after that? any further file operations on any of these devices by processes that have them open will nominally fail. not me ruining everyone's day π but that's literally the point.
the flags must be set to REVOKEALL to signify that all access will be revoked. any other value is invalid β like, don't try it, it's not a vibe check you're gonna pass π
π LOCKS π
the vp must be exclusively locked on entry, and it will remain locked upon return. so it goes in locked, it comes out locked β main character energy, no cap β¨
π SEE ALSO π
go read them, iykyk π«Ά
π AUTHORS π
this manual page was written by Brian Fundakowski Feldman. thank you icon, we appreciate you πβ
k bye bestie, go revoke something responsibly πβ¨ππ¦πΈπ π«Άππ₯ππβππππ§π
this page came to you from Debian, dated June 20, 2019 β mwah, mwah, periodt π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2002 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms