of_drm_find_and_get_bridge(9)
π of_drm_find_and_get_bridge(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual β¨ we're literally in of_drm_find_and_get_bridge(9) territory and it's giving "small function, big responsibilities" energy. stay with me, this one's short and slay.
πΈ NAME πΈ
of_drm_find_and_get_bridge β find the bridge that matches a device node in the global bridge list π«Ά
β¨ SYNOPSIS β¨
struct drm_bridge * of_drm_find_and_get_bridge (struct device_node *np );
π ARGUMENTS π
npβ device node. that's it, that's the whole input. it's the thing you're matching against π
π¦ DESCRIPTION π¦
so here's the tea: the refcount of the returned bridge is incremented. like, it comes back with a little extra baggage and you own it now.
β οΈ bestie listen β use drm_bridge_put when you're done with it. don't just ghost it, that's a leak and the kernel will NOT be cute about it π
β RETURN β
drm_bridgecontrol struct on success π₯NULLon failure π
π 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_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_bridge(9)of_drm_get_bridge_by_endpoint(9)devm_drm_put_bridge(9)
later bestie π this page lives in ./drivers/gpu/drm, dropped October 2026, and it's part of the Kernel API Manual β mwah, stan πβ¨
π¦ 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