VOP_REVOKE(9)
π VOP_REVOKE β bestie, it's time to revoke some access π
okay so this is the VOP_REVOKE(9) page, from the Kernel Developer's Manual, and it's literally about kicking devices out of the group chat. let's get into it π
β¨ NAME β¨
VOP_REVOKE β revoke access to a device and its aliases
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_REVOKE(struct vnode *vp, int flags);
π¦ DESCRIPTION π¦
so here's the tea β β VOP_REVOKE() will administratively revoke access to the device specified by vp, and also to any aliases that got created via make_dev_alias(9). like, the whole friend group, not just the one device. π
any further file operations on any of these devices by processes that have them open will nominally fail. so if a process is still holding it open and tries to do stuff? yeah, that's a no. π
now the flags β they must be set to REVOKEALL to signify that all access will be revoked. that's the vibe. any other value is invalid, full stop, periodt. π«
π LOCKS π
the vp must be exclusively locked on entry, and it will remain locked upon return. so don't be out here unlocking it on your way out, bestie β it stays locked, that's the deal. π
π SEE ALSO π
π AUTHORS π
this manual page was written by Brian Fundakowski Feldman. iconic behavior, honestly. π«Ά
and that's the whole page, no cap β¨ this came from the Debian edition, dated June 20, 2019 β so go forth and revoke responsibly, you absolute main character ππΈπ¦
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2002 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms