drm_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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