drm_atomic_set_fb_for_plane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 ngl
  • fb β€” 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 🌈

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