devm_drm_put_bridge(9)
π devm_drm_put_bridge(9) β the Kernel API Manual page, bestie edition β¨
okay so this is a page straight out of the Kernel API Manual, and honestly? It's a short one, but it's got lore. Sit down, hydrate, let's go π«Ά
πΈ NAME πΈ
devm_drm_put_bridge β release a bridge reference that you got via devm, bestie. That's it, that's the job. β¨
π SYNOPSIS π
void devm_drm_put_bridge (struct device *dev , struct drm_bridge *bridge );
likeβ¦ it takes two things and gives you back void. no notes, it's giving "I do one thing and I do it". π
π¦ ARGUMENTS π¦
devβ thedevicethat got the bridge via devm in the first place. yeah, that dev. it needs to be the one who did the getting, ok? πbridgeβ pointer to astruct drm_bridgethat you obtained via devm. not a random bridge you found on the street, a devm one. π
π DESCRIPTION π
So this function does the same thing as drm_bridge_put, but specifically for bridge pointers that were obtained via devm functions β think things like devm_drm_bridge_alloc. same energy, devm flavour π
Now for the part where I need you to listen, fr fr:
This function is a temporary workaround and MUST NOT be used. Manual handling of bridge lifetime is inherently unsafe. Not "unsafe if you're sloppy" unsafe β inherently unsafe. Like, it's in the description. Capital letters. Do not.
the way that "MUST NOT" is doing all the heavy lifting here π please respect it. not me watching someone try to manually manage bridge lifetimeβ¦ no ma'am, we don't do that here. π
π₯ SEE ALSO π₯
the full friend group, in the order the manpage introduced them, because I'm not about to rearrange the group chat π
- 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_put(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)
and that's the whole page, icon behaviour honestly β
cute little sign-off: this one lives in ./drivers/gpu/drm (the Kernel API Manual corner of the world π¦) and it's dated October 2026 β so yeah, future-coded. periodt. π
π
π¦ 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