devm_drm_bridge_add(9)
β¨ devm_drm_bridge_add β¨
okay so bestie, welcome to the devm_drm_bridge_add(9) page β it's the devm-managed glow-up of drm_bridge_add(), and honestly it's giving "I'll clean up after myself so you don't have to" π
πΈ SYNOPSIS πΈ
int devm_drm_bridge_add (struct device *dev , struct drm_bridge *bridge );
π ARGUMENTS π
devβ the device you're tying the bridge's whole lifetime to π«Ά it's the main character here, the bridge lives and dies by itbridgeβ the bridge control structure itself, the actual bridge bestie
π DESCRIPTION π
So this is the managed version of drm_bridge_add, right? It automatically calls drm_bridge_remove when dev gets unbound. That's it, that's the whole vibe β no manual teardown era, we let devm handle it. No cap, it's literally the same thing but it tidies up for you β¨
π₯ RETURN π₯
0 if there's no error, or a negative error code if there is. That's the whole check, bestie π
π SEE ALSO π
okay this list is LONG, grab a snack π
- 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)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)
ngl bestie, if you read all of those you're an icon π
that's the whole page, mwah π β brought to you straight from ./drivers/gpu/drm, dated October 2026, and that's the tea π§ββοΈβ¨
π¦ 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