drm_poll(9) poll method for DRM file

SYNOPSIS

unsigned int drm_poll(struct file * filp, struct poll_table_struct * wait);

ARGUMENTS

filp

file pointer

wait

poll waiter table

DESCRIPTION

This function must be used by drivers as their .read #file_operations method iff they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.

See also drm_read.

RETURNS

Mask of POLL flags indicating the current status of the file.

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