drm_framebuf...ster_private(9)
β¨ drm_framebuffer_unregister_private(9) β¨
okay bestie, so this one lives in the Kernel API Manual (section 9, kernel-space girlies only π
) and the full name is honestly a mouthful β it's drm_framebuffer_unregister_private. say it three times fast, i dare you π«Ά
πΈ NAME πΈ
drm_framebuffer_unregister_private β unregister a private fb from the lookup idr
like, you're taking your little driver-private framebuffer's name out of the idr lookup list. it's a breakup, but administrative πβ¨
π¦ SYNOPSIS π¦
void drm_framebuffer_unregister_private (struct drm_framebuffer *fb );
that's it. that's the whole thing. returns nothing (void), takes one pointer. iconic minimalism π
π ARGUMENTS π
fbβ fb to unregister π (yes, the original really is that short. the fb you want to unregister. that's the vibes.)
π DESCRIPTION π
okay so here's the tea β β drivers need to call this when they're cleaning up driver-private framebuffers, e.g. those used for fbdev. like, this is a "you gotta do it" situation, not a "would be nice" situation.
β οΈ but listen: the caller must hold a reference of its own, i.e. the object may not be destroyed through this call (since it'll lead to a locking inversion). so like... don't try to be slick and sneak a destroy in there. the lock will absolutely notice and it will not be cute ππ
π§ NOTE π§
this function is deprecated, bestie. ngl, it's on the way out π«
for driver-private framebuffers, it is not recommended to embed a framebuffer struct info fbdev struct. instead, a framebuffer pointer is preferred and drm_framebuffer_put should be called when the framebuffer is to be cleaned up.
so: pointer > embedding, and drm_framebuffer_put is your new bestie when cleanup time comes. slay π
β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_framebuffer.coverview(9) drm_mode_addfb(9)drm_mode_addfb2(9)drm_mode_rmfb(9)drm_mode_getfb(9)drm_mode_getfb2_ioctl(9)drm_mode_dirtyfb_ioctl(9)drm_fb_release(9)drm_framebuffer_init(9)drm_framebuffer_lookup(9)drm_framebuffer_cleanup(9)drm_framebuffer_remove(9)
go read the whole little friend group, they all hang out together in ./drivers/gpu/drm π¦π
and that's the page, bestie π it comes to you from ./drivers/gpu/drm, dated October 2026, and its official little name-tag is drm_framebuf...ster_private(9) (they truncated it, which is lowkey tragic but whatever). mwah, go hold your references properly πβ¨
π¦ 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