drm_framebuf...ster_private(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯

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