drm_send_event_locked(9) send DRM event to file descriptor

SYNOPSIS

void drm_send_event_locked(struct drm_device * dev, struct drm_pending_event * e);

ARGUMENTS

dev

DRM device

e

DRM event to deliver

DESCRIPTION

This function sends the event e, initialized with drm_event_reserve_init, to its associated userspace DRM file. Callers must already hold dev->event_lock, see drm_send_event for the unlocked version.

Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT