drm_gem_fb_end_cpu_access(9)
π drm_gem_fb_end_cpu_access
okay so this one lives in the Kernel API Manual, and it's lowkey the "we're so done here" bestie of the DRM framebuffer world. Let's get into it π«Ά
β¨ NAME β¨
drm_gem_fb_end_cpu_access β signals end of CPU access to GEM buffer objects
like, it's the closing ceremony for when your CPU was touching GEM buffer objects and now it's NOT. periodt. π
πΈ SYNOPSIS πΈ
void drm_gem_fb_end_cpu_access(struct drm_framebuffer *fb, enum dma_data_direction dir);
no return value, it just does the thing and dips π
π¦ ARGUMENTS π¦
fbβ the framebuffer. the main character here, honestly πdirβ access mode. which way the data was flowing, iykyk
π DESCRIPTION π
So basically, this function signals the end of CPU access to the given framebuffer's GEM buffer objects. That's it, that's the vibe β¨
Here's the part you CANNOT skip, bestie: this function must be paired with a corresponding call to drm_gem_fb_begin_cpu_access. it's giving matched set, it's giving two halves of one soul, it's giving "don't you dare call the end without the begin" π fr fr, they go together.
And for imported BOs? the function calls dma_buf_end_cpu_access. so it's out here delegating, as it should π«Ά
See also drm_gem_fb_begin_cpu_access β the other half of the duo, go say hi π
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/drm_gem_framebuffer_helper.coverview(9) drm_gem_fb_get_obj(9)drm_gem_fb_destroy(9)drm_gem_fb_create_handle(9)drm_gem_fb_init_with_funcs(9)drm_gem_fb_create_with_funcs(9)drm_gem_fb_create(9)drm_gem_fb_create_with_dirty(9)drm_gem_fb_vmap(9)drm_gem_fb_vunmap(9)drm_gem_fb_begin_cpu_access(9)drm_gem_fb_afbc_init(9)
the whole friend group, all tagged and accounted for π
quick vibe check: begin + end are a package deal. call the end without the begin and you're just out here causing chaos, and not the cute kind π
and that's the page!! shoutout to ./drivers/gpu/drm, dated October 2026, living under drm_gem_fb_end_cpu_access(9) β ily, go pair your calls 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