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