drm_poll(9)
π drm_poll(9) β Kernel API Manual, but make it group chat π
Okay so bestie, welcome to drm_poll(9) from the Kernel API Manual. Itβs giving very specific kernel-core energy, and Iβm obsessed. Letβs get into it, fr fr.
π NAME π
drm_poll β poll method for DRM file.
Thatβs the whole name section. Short, sweet, no cap.
πͺ SYNOPSIS πͺ
__poll_t drm_poll (struct file *filp , struct poll_table_struct *wait );
Copy it exactly, bestie β spaces and all. The return type is __poll_t, the function is drm_poll, and yes, the punctuation is serving exactly as written. Periodt.
π§Έ ARGUMENTS π§Έ
filpβ file pointer. Lowkey iconic.waitβ poll waiter table. Very demure, very mindful.
πΈ DESCRIPTION πΈ
Okay so hereβs the important part, and I need you to listen: this function must be used by drivers as their file_operations.read method if they use DRM events for asynchronous signalling to userspace. Yes, the page literally says file_operations.read β Iβm not editing the lore, Iβm just reporting it. π«Ά
Since events are used by the KMS API for vblank and page flip completion, this means all modern display drivers must use it. Highkey thatβs a lot of responsibility, but she ate. π
See also drm_read.
π RETURN π
Returns a mask of POLL flags indicating the current status of the file.
Thatβs the whole return vibe check β mask, POLL flags, current status, file. Slay.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_file.c, plus these icons:
file operations(9)drm_file_alloc(9)drm_file_free(9)drm_open(9)drm_release(9)drm_release_noglobal(9)drm_read(9)drm_event_reserve_init_locked(9)drm_event_reserve_init(9)drm_event_cancel_free(9)drm_send_event_timestamp_locked(9)drm_send_event_locked(9)drm_send_event(9)drm_print_memory_stats(9)drm_show_memory_stats(9)drm_show_fdinfo(9)drm_file_err(9)mock_drm_getfile(9)
Alright bestie, thatβs the page. Source/version vibe: this one comes from ./drivers/gpu/drm, dated October 2026, and itβs drm_poll(9) β no cap. Go forth and poll responsibly. πβ¨
π¦ 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