Expand description
DRM IOCTL definitions.
C header: include/linux/drm/drm_ioctl.h
Constants§
- AUTH
- This is for ioctl which are used for rendering, and require that the file descriptor is either for a render node, or if it’s a legacy/primary node, then it must be authenticated.
- MASTER
- This must be set for any ioctl which can change the modeset or display state. Userspace must call the ioctl through a primary node, while it is the active master.
- RENDER_
ALLOW - This is 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 be always set for any ioctl with
AUTH
set. Note though that read-only query ioctl might have this set, but have not set DRM_AUTH because they do not require authentication. - ROOT_
ONLY - Anything that could potentially wreak a master file descriptor needs to have this flag set.
Functions§
- IO
- Construct a DRM ioctl number with no argument.
- IOR
- Construct a DRM ioctl number with a read-only argument.
- IOW
- Construct a DRM ioctl number with a write-only argument.
- IOWR
- Construct a DRM ioctl number with a read-write argument.
Type Aliases§
- DrmIoctl
Descriptor - Descriptor type for DRM ioctls. Use the
declare_drm_ioctls!{}
macro to construct them.