drm_dp_mst_put_mstb_malloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_mst_put_mstb_malloc(9) β€” like, the Kernel API Manual bestie πŸŽ€

okay so real talk, this one's a whole little function from the kernel API manual and it's lowkey iconic for how much it does with so few words. buckle up πŸ¦‹


✨ NAME ✨

drm_dp_mst_put_mstb_malloc β€” decrements the malloc refcount of a branch device, periodt πŸ’…


🌸 SYNOPSIS 🌸

void drm_dp_mst_put_mstb_malloc (struct drm_dp_mst_branch *mstb );

like, that's it. that's the whole signature. she's simple, she's elegant, she's giving minimalism πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mstb β€” the struct drm_dp_mst_branch you're decrementing the malloc refcount of. this is the main character of the whole operation fr fr 🫢

πŸ’– DESCRIPTION πŸ’–

okay so what this does is it decrements drm_dp_mst_branch.malloc_kref. that's the malloc refcount, yk? and here's the tea β˜• β€” when drm_dp_mst_branch.malloc_kref reaches 0, the memory allocation for mstb gets released and mstb may no longer be used. like, she's gone, don't touch her, do not perceive her πŸ’€

⚠️ bestie pls note: once that refcount hits zero and the memory for mstb is released, you genuinely cannot use mstb anymore. no cap. that's undefined-behaviour territory and we do NOT go there πŸ™ˆ

See also: drm_dp_mst_get_mstb_malloc β€” the other half of the duo, the get to this put 🧚


🌈 SEE ALSO 🌈

the whole friend group, literally all of them, no one left out πŸ’œ:


that's the whole page bestie, you ate that πŸ“βœ¨

source dir: ./drivers/gpu/drm/display Β· dated: October 2026 Β· mwah, see u in the next manpage πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from