drm_bridge_remove(9)
π drm_bridge_remove(9)
okay so this is a page from the Kernel API Manual β yes bestie, the kernel has its own manual pages, we love a documented kernel π«Ά β and today's main character is drm_bridge_remove, which unregisters a bridge. Short page, iconic energy, let's go β¨
πΈ SYNOPSIS πΈ
void drm_bridge_remove (struct drm_bridge *bridge );
that's it. that's the whole function signature. void return, one argument, no drama π
π ARGUMENTS π
bridgeβ the bridge control structure. like, the actual struct we're about to yeet off the registry. she's the one getting removed, no cap.
β¨ DESCRIPTION β¨
okay so what actually happens here π β drm_bridge_remove takes the given bridge and removes it from the global list of registered bridges. the way that means nobody's gonna find it anymore: users looking it up via of_drm_find_and_get_bridge will come up empty, literally. she's off the grid. π
but wait, she doesn't just vanish into the void β nope, the function also adds her to the lingering bridge list, which is exactly what it sounds like. it keeps track of the bridge until its allocated memory is eventually freed. so she's lingering, bestie. still on the books, just not on the guest list. π¦
lowkey important: remove from registry β freed. the lingering list is the whole point β memory cleanup comes later, not here. don't be out here assuming drm_bridge_remove frees anything π
π SEE ALSO π
a whole friend group, fr fr β go say hi:
- 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_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)
and that's the page, bestie π this lil drop of kernel lore lives in ./drivers/gpu/drm, it's part of the Kernel API Manual, and it's dated October 2026 β so she's from the future, which honestly tracks ππ
π¦ 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