include/drm/drm_plane.h
Source file repositories/reference/linux-study-clean/include/drm/drm_plane.h
File Facts
- System
- Linux kernel
- Corpus path
include/drm/drm_plane.h- Extension
.h- Size
- 33131 bytes
- Lines
- 1029
- 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/list.hlinux/ctype.hlinux/kmsg_dump.hdrm/drm_mode_object.hdrm/drm_color_mgmt.hdrm/drm_rect.hdrm/drm_modeset_lock.hdrm/drm_util.h
Detected Declarations
struct drm_crtcstruct drm_plane_size_hintstruct drm_printerstruct drm_modeset_acquire_ctxstruct drm_plane_statestruct drm_plane_funcsstruct drm_planeenum drm_scaling_filterenum drm_plane_typefunction drm_plane_state_srcfunction drm_plane_state_destfunction drm_universal_plane_allocfunction drm_plane_maskfunction drm_mode_object_find
Annotated Snippet
struct drm_plane_state {
/** @plane: backpointer to the plane */
struct drm_plane *plane;
/**
* @crtc:
*
* Currently bound CRTC, NULL if disabled. Do not write this directly,
* use drm_atomic_set_crtc_for_plane()
*/
struct drm_crtc *crtc;
/**
* @fb:
*
* Currently bound framebuffer. Do not write this directly, use
* drm_atomic_set_fb_for_plane()
*/
struct drm_framebuffer *fb;
/**
* @fence:
*
* Optional fence to wait for before scanning out @fb. The core atomic
* code will set this when userspace is using explicit fencing. Do not
* write this field directly for a driver's implicit fence.
*
* Drivers should store any implicit fence in this from their
* &drm_plane_helper_funcs.prepare_fb callback. See
* drm_gem_plane_helper_prepare_fb() for a suitable helper.
*/
struct dma_fence *fence;
/**
* @crtc_x:
*
* Left position of visible portion of plane on crtc, signed dest
* location allows it to be partially off screen.
*/
int32_t crtc_x;
/**
* @crtc_y:
*
* Upper position of visible portion of plane on crtc, signed dest
* location allows it to be partially off screen.
*/
int32_t crtc_y;
/** @crtc_w: width of visible portion of plane on crtc */
/** @crtc_h: height of visible portion of plane on crtc */
uint32_t crtc_w, crtc_h;
/**
* @src_x: left position of visible portion of plane within plane (in
* 16.16 fixed point).
*/
uint32_t src_x;
/**
* @src_y: upper position of visible portion of plane within plane (in
* 16.16 fixed point).
*/
uint32_t src_y;
/** @src_w: width of visible portion of plane (in 16.16) */
/** @src_h: height of visible portion of plane (in 16.16) */
uint32_t src_h, src_w;
/** @hotspot_x: x offset to mouse cursor hotspot */
/** @hotspot_y: y offset to mouse cursor hotspot */
int32_t hotspot_x, hotspot_y;
/**
* @alpha:
* Opacity of the plane with 0 as completely transparent and 0xffff as
* completely opaque. See drm_plane_create_alpha_property() for more
* details.
*/
u16 alpha;
/**
* @pixel_blend_mode:
* The alpha blending equation selection, describing how the pixels from
* the current plane are composited with the background. Value can be
* one of DRM_MODE_BLEND_*
*/
uint16_t pixel_blend_mode;
/**
* @rotation:
* Rotation of the plane. See drm_plane_create_rotation_property() for
Annotation
- Immediate include surface: `linux/list.h`, `linux/ctype.h`, `linux/kmsg_dump.h`, `drm/drm_mode_object.h`, `drm/drm_color_mgmt.h`, `drm/drm_rect.h`, `drm/drm_modeset_lock.h`, `drm/drm_util.h`.
- Detected declarations: `struct drm_crtc`, `struct drm_plane_size_hint`, `struct drm_printer`, `struct drm_modeset_acquire_ctx`, `struct drm_plane_state`, `struct drm_plane_funcs`, `struct drm_plane`, `enum drm_scaling_filter`, `enum drm_plane_type`, `function drm_plane_state_src`.
- 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.