ENUM DRM_IOCTL_FLAGS(9)
πΈ ENUM DRM_IOCTL_FLAGS πΈ
okay bestie, welcome to the Kernel API Manual entry for enum drm_ioctl_flags β yep, that whole mouthful is the manual name, we're not typing it twice π
. This is the DRM ioctl flags page, and it's honestly kind of iconic once you get past the lowercase enum energy.
β¨ SYNOPSIS β¨
enum drm_ioctl_flags {
DRM_AUTH ,
DRM_MASTER ,
DRM_ROOT_ONLY ,
DRM_RENDER_ALLOW
};
like, that's the whole cast π«Ά four constants, zero drama.
π CONSTANTS π
DRM_AUTHβ this one's for ioctls that get used for rendering, and it requires that the file descriptor is either a render node, or β if it's a legacy/primary node β then it has to be authenticated. no auth, no entry, sorry babe πDRM_MASTERβ must be set for any ioctl that can change the modeset or display state. userspace has to call the ioctl through a primary node, while it is the active master. main character requirements fr.
heads up though: read-only modeset ioctl can also be called by unauthenticated clients, or when a master is not the currently active one π
DRM_ROOT_ONLYβ anything that could potentially wreak a master file descriptor needs this flag set. currently that's only theSETMASTERandDROPMASTERioctl, which e.g.logindcan call to force a non-behaving master (display compositor) into compliance. it's giving hall monitor and honestly? needed π
this is equivalent to callers with the SYSADMIN capability.
DRM_RENDER_ALLOWβ used for all ioctl needed for rendering only, for drivers which support render nodes. this should be all new render drivers, and hence it should always be set for any ioctl withDRM_AUTHset. π
but note: read-only query ioctl might have this set, but have not set DRM_AUTH, because they do not require authentication. sneaky little exception, love that for them π¦
π DESCRIPTION π
various flags that can be set in drm_ioctl_desc.flags to control how userspace can use a given ioctl. that's it, that's the vibe β they're the little permission stickers on your ioctl π
π SEE ALSO π
- Kernel file
./include/drm/drm_ioctl.h drm_ioctl_t(9)drm_ioctl_compat_t(9)struct drm_ioctl_desc(9)DRM_IOCTL_DEF_DRV(9)
go read those, iykyk πβ¨
and that's a wrap, bestie!! π«Ά this page lives over in ./include/drm, and it's stamped October 2026 β so yeah, girlies in the future are still out here reading about ioctl flags. slay. ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms