drm_atomic_set_fb_for_plane(9)
β¨ drm_atomic_set_fb_for_plane(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is a little function from the DRM atomic world π it's called drm_atomic_set_fb_for_plane and honestly? it's giving "quietly does the important bookkeeping so you don't have to" energy. iconic behavior fr fr.
πΈ NAME πΈ
drm_atomic_set_fb_for_plane β set framebuffer for plane π
π SYNOPSIS π
void drm_atomic_set_fb_for_plane (struct drm_plane_state *plane_state ,
struct drm_framebuffer *fb );
literally that's the whole signature, no notes π
π¦ ARGUMENTS π¦
plane_stateβ the atomic state object for the plane β¨ this is the state you're editing, the main character of the operation nglfbβ the fb you wanna use for the plane πΈ
π DESCRIPTION π
okay so here's the tea β: changing the assigned framebuffer for a plane isn't just "point at the new one and go" β it requires us to grab a reference to the new fb and drop the reference to the old fb, if there is one. like, you gotta be polite to both of them, y'know? π«Ά
This function takes care of all these details besides updating the pointer in the state object itself. so basically it handles the refcount drama and you handle the pointer assignment β teamwork, lowkey π
bestie pls note: the function does not update the pointer in the state object. that part is on you. no cap.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_atomic_uapi.c overview(9)drm_atomic_set_mode_for_crtc(9)drm_atomic_set_mode_prop_for_crtc(9)drm_atomic_set_crtc_for_plane(9)drm_atomic_set_colorop_for_plane(9)drm_atomic_set_crtc_for_connector(9)- explicit fencing properties(9)
like, go read the whole friend group, they're all slay π₯
and that's the page!! π
this little icon lives in ./drivers/gpu/drm, the Kernel API Manual, dated October 2026, and the whole thing is filed under drm_atomic_set_fb_for_plane(9) β mwah, bye bestie, go set some framebuffers responsibly πβ¨π
π¦ 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