drm_ioctl(9)
π drm_ioctl(9) π
okay bestie, welcome to drm_ioctl(9) from the Kernel API Manual β yes, the whole manual name is in the group chat now. This is the ioctl callback implementation for DRM drivers, and it's lowkey iconic. π
β¨ NAME β¨
drm_ioctl β ioctl callback implementation for DRM drivers π
πΈ SYNOPSIS πΈ
long drm_ioctl (struct file *filp , unsigned int cmd , unsigned long arg
);
π¦ ARGUMENTS π¦
filpβ the file this ioctl is called on.cmdβ ioctl cmd number.argβ user argument.
π₯ DESCRIPTION π₯
So here's the vibe: it looks up the ioctl function in the DRM core and the driver dispatch table, stored in drm_driver.ioctls. Then it checks for the necessary permission by calling drm_ioctl_permit, and dispatches to the respective function. That's the main-character move, no cap. β¨
π RETURN π
Zero on success, negative error code on failure. Slay = 0; not slay = negative error code. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_ioctl.c getunique and setversion story(9)drm_noop(9)drm_invalid_op(9)driver specific ioctls(9)drm_ioctl_flags(9)
mwah π β source/version is ./drivers/gpu/drm, date is October 2026, and that's the cute little sign-off. π«Ά
π¦ 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