drm_send_ev...stamp_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_send_ev...stamp_locked(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and we're talking about drm_send_event_timestamp_locked β€” yes the name is a whole mouthful, the header just abbreviates it because apparently even kernel docs get tired 😭 anyway. stick with me, it's actually so good.


✨ NAME ✨

drm_send_event_timestamp_locked β€” send a DRM event to a file descriptor, bestie πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_send_event_timestamp_locked (struct drm_device *dev , struct
drm_pending_event *e , ktime_t timestamp );

🌸 ARGUMENTS 🌸

  • dev β€” the DRM device. literally the device. that's the whole vibe 🫢
  • e β€” the DRM event you want to deliver. this is the main character of the function ngl πŸ‘‘
  • timestamp β€” the timestamp to set for the fence event, and it lives in the kernel's CLOCK_MONOTONIC time domain ⏰ (yes, that domain, iykyk)

πŸ’œ DESCRIPTION πŸ’œ

so what this function does: it sends the event e β€” which you already initialized with drm_event_reserve_init β€” over to its associated userspace DRM file. that's it, that's the job ✨

⚠️ before you even think about calling this: callers must already hold drm_device.event_lock. no cap. that's a hard requirement, bestie, not a suggestion πŸ’€

and here's the part that's genuinely so nice of the kernel: the core takes care of unlinking and disarming events when the corresponding DRM file gets closed. so drivers do not need to worry about whether the DRM file for this event still exists πŸŽ€ you can just call this function upon completion of the asynchronous work unconditionally β€” no checks, no peeking, no anxiety. iconic behavior, honestly. the core ate that πŸ“


🌈 SEE ALSO 🌈

the whole friend group, in order, no one left out πŸ’–


aaaand that's the page!! 🧚 source lives at ./drivers/gpu/drm, dated October 2026 β€” mwah, go forth and send those events, you've got this fr fr πŸ’…πŸ’–

πŸ“¦ where this page comes from