include/drm/drm_vblank_helper.h
Source file repositories/reference/linux-study-clean/include/drm/drm_vblank_helper.h
File Facts
- System
- Linux kernel
- Corpus path
include/drm/drm_vblank_helper.h- Extension
.h- Size
- 1685 bytes
- Lines
- 57
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/hrtimer_types.hlinux/types.h
Detected Declarations
struct drm_atomic_commitstruct drm_crtc
Annotated Snippet
#ifndef _DRM_VBLANK_HELPER_H_
#define _DRM_VBLANK_HELPER_H_
#include <linux/hrtimer_types.h>
#include <linux/types.h>
struct drm_atomic_commit;
struct drm_crtc;
/*
* VBLANK helpers
*/
void drm_crtc_vblank_atomic_flush(struct drm_crtc *crtc,
struct drm_atomic_commit *state);
void drm_crtc_vblank_atomic_enable(struct drm_crtc *crtc,
struct drm_atomic_commit *state);
void drm_crtc_vblank_atomic_disable(struct drm_crtc *crtc,
struct drm_atomic_commit *crtc_state);
/**
* DRM_CRTC_HELPER_VBLANK_FUNCS - Default implementation for VBLANK helpers
*
* This macro initializes struct &drm_crtc_helper_funcs to default helpers
* for VBLANK handling.
*/
#define DRM_CRTC_HELPER_VBLANK_FUNCS \
.atomic_flush = drm_crtc_vblank_atomic_flush, \
.atomic_enable = drm_crtc_vblank_atomic_enable, \
.atomic_disable = drm_crtc_vblank_atomic_disable
/*
* VBLANK timer
*/
int drm_crtc_vblank_helper_enable_vblank_timer(struct drm_crtc *crtc);
void drm_crtc_vblank_helper_disable_vblank_timer(struct drm_crtc *crtc);
bool drm_crtc_vblank_helper_get_vblank_timestamp_from_timer(struct drm_crtc *crtc,
int *max_error,
ktime_t *vblank_time,
bool in_vblank_irq);
/**
* DRM_CRTC_VBLANK_TIMER_FUNCS - Default implementation for VBLANK timers
*
* This macro initializes struct &drm_crtc_funcs to default helpers for
* VBLANK timers.
*/
#define DRM_CRTC_VBLANK_TIMER_FUNCS \
.enable_vblank = drm_crtc_vblank_helper_enable_vblank_timer, \
.disable_vblank = drm_crtc_vblank_helper_disable_vblank_timer, \
.get_vblank_timestamp = drm_crtc_vblank_helper_get_vblank_timestamp_from_timer
#endif
Annotation
- Immediate include surface: `linux/hrtimer_types.h`, `linux/types.h`.
- Detected declarations: `struct drm_atomic_commit`, `struct drm_crtc`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.