---
name: "drm_vblank_count_and_time"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_vblank_count_and_time"
---

# drm\_vblank\_count\_and\_time(9)

retrieve “cooked” vblank counter value and the system timestamp corresponding to that vblank counter value.

## NAME

drm\_vblank\_count\_and\_time - retrieve “cooked” vblank counter value and the system timestamp corresponding to that vblank counter value.

## SYNOPSIS

**u32 drm\_vblank\_count\_and\_time(struct drm\_device \*** *dev***, int** *crtc***, struct timeval \*** *vblanktime***);**

## ARGUMENTS

*dev*

DRM device

*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.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
