drm_gem_sim...ow_fb_access(9)
π drm_gem_simple_kms_begin_shadow_fb_access β bestie edition π
okay so this is a page straight out of the Kernel API Manual, and it's about drm_gem_simple_kms_begin_shadow_fb_access β which, yes, is a whole mouthful, but it's literally just the function that prepares shadow framebuffers for CPU access. say it with me: prep the shadow fb so the CPU can touch it. iconic behaviour honestly π
β¨ SYNOPSIS β¨
int drm_gem_simple_kms_begin_shadow_fb_access (struct
drm_simple_display_pipe *pipe , struct drm_plane_state *plane_state );
like, it takes two things and gives you back an int. no cap. π
π¦ ARGUMENTS π¦
pipeβ the simple display pipe. that's the vibe. that's the whole thing.plane_stateβ the plane state, and heads up, it's of typestruct drm_shadow_plane_stateπ
πΈ DESCRIPTION πΈ
so what this function does is implement struct drm_simple_display_funcs.begin_fb_access. that's the assignment, that's the job, she ate π
for the full details you gotta go read drm_gem_begin_shadow_fb_access, and when you're done and you need to clean up, that's drm_gem_simple_kms_cleanup_shadow_fb's moment to shine β¨
π RETURN π
0on success π«Ά- a negative errno code otherwise π
that's it. that's the whole return contract. periodt.
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/drm_gem_atomic_helper.c β that's the home base, and here's the whole friend group:
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_reset_shadow_plane(9)drm_gem_begin_shadow_fb_access(9)drm_gem_end_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)
like, go read them. all of them. i'll wait π
ngl the function name is so long it barely fits in the header, which is why the title is all truncated like drm_gem_sim...ow_fb_access(9) β she's mysterious, she's abbreviated, she contains multitudes π
and that's the page!! this one came from ./drivers/gpu/drm, dated October 2026, dropping out of the Kernel API Manual like the main character she is π§ββοΈ mwah, go prep those shadow framebuffers, bestie π
π
π¦ 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