drm_gem_reset_shadow_plane(9)
π drm_gem_reset_shadow_plane(9)
okay so bestie, welcome to the Kernel API Manual β this one's a little function from the drm_gem_reset_shadow_plane(9) page and honestly? it's giving "small but crucial" β¨
πΈ NAME πΈ
drm_gem_reset_shadow_plane β resets a shadow-buffered plane π
β¨ SYNOPSIS β¨
void drm_gem_reset_shadow_plane (struct drm_plane *plane );
like, that's the whole signature. void return, one pointer, no drama π
π¦ ARGUMENTS π¦
planeβ the plane. that's it, that's the argument. it's the plane, the main character π
π DESCRIPTION π
okay so here's the tea β β this function implements struct drm_plane_funcs.reset_plane for shadow-buffered planes. it's literally the reset hook, doing reset-hook things π₯
it assumes the current plane state is of type struct drm_shadow_plane (yes, assumes β no vibe check, no validation, just trust π) and then it allocates the new state of this type. new state, who dis π«
ngl, the whole "assumes the current plane state to be of type" thing is doing a lot of heavy lifting here β so keep that in mind if you're passing it something else π«Ά
π SEE ALSO π
like, go read these too, they're all part of the same friend group π
- the Kernel file
./drivers/gpu/drm/drm_gem_atomic_helper.cβoverview(9) drm_gem_plane_helper_prepare_fb(9)__drm_gem_duplicate_shadow_plane_state(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_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! this lil gem lives in ./drivers/gpu/drm and the page is dated October 2026 β so yeah, future vibes only β slay, go reset some planes π
π«Ά
π¦ 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