drm_gem_dupl..._plane_state(9)
π drm_gem_duplicate_shadow_plane_state(9) π
okay bestie so this is a page from the Kernel API Manual β yes it's giving big kernel energy, don't panic, we got you π«Ά
β¨ NAME β¨
drm_gem_duplicate_shadow_plane_state β duplicates shadow-buffered plane state, literally that's the whole vibe π¦
πΈ SYNOPSIS πΈ
struct drm_plane_state * drm_gem_duplicate_shadow_plane_state (struct drm_plane *plane );
π ARGUMENTS π
planeβ the plane. that's it, that's the argument, she's a simple icon π
π DESCRIPTION π
okay so here's the tea: this function is the implementation of struct drm_plane_funcs.atomic_duplicate_state for shadow-buffered planes. like, that's its whole job, that's her main character moment β¨
she assumes the existing state is of type struct drm_shadow_plane_state, and then she allocates the new state to be exactly that type too. consistent queen π
but β and this is the important part, ngl β the function does not duplicate existing mappings of the shadow buffers. no cap. those mappings are maintained during the atomic commit by the plane's prepare_fb and cleanup_fb helpers instead π§
so if you wanna see the corresponding helpers, go look at drm_gem_prepare_shadow_fb and drm_gem_cleanup_shadow_fb. iykyk π₯
β RETURN β
a pointer to a new plane state on success π or NULL otherwise π that's it, that's the return value, no plot twists.
π SEE ALSO π
so many friends, we love a linked list of icons π
- Kernel file
./drivers/gpu/drm/drm_gem_atomic_helper.coverview(9) drm_gem_plane_helper_prepare_fb(9)__drm_gem_duplicate_shadow_plane_state(9)__drm_gem_destroy_shadow_plane_state(9)drm_gem_destroy_shadow_plane_state(9)__drm_gem_reset_shadow_plane(9)drm_gem_reset_shadow_plane(9)drm_gem_begin_shadow_fb_access(9)drm_gem_end_shadow_fb_access(9)drm_gem_simple_kms_begin_shadow_fb_access(9)drm_gem_simple_kms_end_shadow_fb_access(9)drm_gem_simple_kms_reset_shadow_plane(9)drm_gem_simple_kms_duplicate_shadow_plane_state(9)drm_gem_simple_kms_destroy_shadow_plane_state(9)
and that's the whole page bestie, go forth and duplicate those shadow-buffered plane states responsibly π¦π
mwah π β this lil gem lives in ./drivers/gpu/drm, dated October 2026, and yes the header still says drm_gem_dupl..._plane_state(9) because some things are simply iconic and we don't touch them β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms