drm_bridge_put(9)
π drm_bridge_put(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the DRM bridge saga, and you've got a reference you gotta let go of. That's this whole function. It's a Kernel API Manual girlie and she's here to help you not leak memory. π
β¨ NAME β¨
drm_bridge_put β release a bridge reference, aka the polite way to say "we're done here" π«Ά
πΈ SYNOPSIS πΈ
void drm_bridge_put (struct drm_bridge *bridge );
π¦ ARGUMENTS π¦
bridgeβ your DRM bridge, bestie. And listen: if it'sNULLor anERR_PTR, this function literally does nothing. No crash, no drama, it just vibes and moves on. πβ¨
π DESCRIPTION π
So what's it actually doing? It decrements the bridge's reference count and, if that count drops all the way to zero, it frees the object. That's it. That's the whole gig. Clean, simple, iconic. π
Lowkey important: if you also need to set the pointer toNULLafterwards, this is not the one. Go check outdrm_bridge_clear_and_putinstead, iykyk. π
π SEE ALSO π
The whole friend group, fr fr:
- Kernel file
./drivers/gpu/drm/drm_bridge.c overview(9)display driver integration(9)special care dsi(9)dsi bridge operations(9)bridge chain format selection(9)drm_bridge_enter(9)drm_bridge_exit(9)drm_bridge_unplug(9)drm_bridge_get(9)drm_bridge_clear_and_put(9)drm_bridge_put_void(9)drm_bridge_add(9)devm_drm_bridge_add(9)drm_bridge_remove(9)drm_bridge_attach(9)bridge operations(9)drm_bridge_chain_mode_valid(9)drm_bridge_chain_mode_set(9)drm_atomic_bridge_chain_disable(9)drm_atomic_bridge_chain_post_disable(9)drm_atomic_bridge_chain_pre_enable(9)drm_atomic_bridge_chain_enable(9)drm_atomic_bridge_chain_check(9)drm_bridge_detect(9)drm_bridge_get_modes(9)drm_bridge_edid_read(9)drm_bridge_hpd_enable(9)drm_bridge_hpd_disable(9)drm_bridge_hpd_notify(9)of_drm_find_and_get_bridge(9)of_drm_find_bridge(9)of_drm_get_bridge_by_endpoint(9)devm_drm_put_bridge(9)
k that's the page!! π this lil drop came from ./drivers/gpu/drm, dated October 2026 β mwah, go touch grass (or a bridge), ily π§ββοΈβ
π¦ 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