drm_dp_mst_put_port_malloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_mst_put_port_malloc β€” the Kernel API Manual, bestie edition ✨

okay so real talk, you're reading the page for drm_dp_mst_put_port_malloc, which lives in the Kernel API Manual and is basically the "you can let go now" button for an MST port. 🫢


✨ NAME ✨

drm_dp_mst_put_port_malloc β€” decrement the malloc refcount of an MST port πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_dp_mst_put_port_malloc (struct drm_dp_mst_port *port );

that's it. one function, one argument, zero drama. πŸ’…


🌸 ARGUMENTS 🌸

  • port β€” the struct drm_dp_mst_port whose malloc refcount you're decrementing. like, this is the port you're saying bye to. πŸ‘‹

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: this decrements drm_dp_mst_port.malloc_kref. πŸ“‰

and when drm_dp_mst_port.malloc_kref hits 0? that's the moment, bestie β€” the memory allocation for port gets released, and port may no longer be used. 😭 like genuinely, it's gone, do not touch it after that.

lowkey important: once the refcount drops to 0 and the memory is freed, port may no longer be used. no cap. that's not a suggestion, that's a rule. πŸ’€

see also: drm_dp_mst_get_port_malloc β€” the other half of the story, the one that bumps the count up. πŸ”₯


🌈 SEE ALSO 🌈

okay this list is LONG, but we're getting through it together, iykyk. every single one, no skipping:

like, that's the whole friend group right there. πŸ§šπŸ’œ


and that's the page!! 🌟 this iconic little number comes to you from ./drivers/gpu/drm/display and it's dated October 2026 β€” go off, kernel docs, periodt. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from