drm_crtc_vblank_count_and_time(9) retrieve cooked vblank counter value and the system timestamp corresponding to that vblank counter value

SYNOPSIS

u32 drm_crtc_vblank_count_and_time(struct drm_crtc * crtc, struct timeval * vblanktime);

ARGUMENTS

crtc

which counter to retrieve

vblanktime

Pointer to struct timeval to receive the vblank timestamp.

DESCRIPTION

Fetches the "cooked" vblank count value that represents the number of vblank events since the system was booted, including lost events due to modesetting activity. Returns corresponding system timestamp of the time of the vblank interval that corresponds to the current vblank counter value.

This is the native KMS version of drm_vblank_count_and_time.

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