devm_drm_pa...ge_add_typed(9)
π devm_drm_panel_bridge_add_typed(9) β from the Kernel API Manual, bestie π
okay so picture this: you're out here in the kernel, you've got a struct device *, you've got a struct drm_panel *, and you want a managed &drm_bridge plus a &drm_connector β except you're feeling spicy and you wanna pick the connector type yourself instead of letting the panel decide. that's this function. that's the whole vibe. β¨
β¨ SYNOPSIS β¨
struct drm_bridge * devm_drm_panel_bridge_add_typed (struct device *dev
, struct drm_panel *panel , u32 connector_type );
it's giving "one function, three arguments, zero chill." π¦
πΈ ARGUMENTS πΈ
devβ the device you're tying the bridge's lifetime to. it's a whole managed situation, so whendevgoes bye-bye, the bridge goes with it. periodt. πpanelβ thedrm_panelgetting wrapped up all cozy. must be non-NULL. like, fr fr, don't pass NULL here, that's not the move. πconnector_typeβ the connector type, as au32, picked from theDRM_MODE_CONNECTOR_*squad π (that's literally the naming convention, the*is right there in the manpage, iykyk).
π¦ DESCRIPTION π¦
so this bad boy is just like devm_drm_panel_bridge_add, except it forces the connector type to whatever you passed in as connector_type, instead of inferring it from the panel. no guessing, no vibes-based type detection, you're the main character and you decide. π
β οΈ okay bestie, important: this function is deprecated and should not be used in new drivers. the glow-up is real and you need to move on. use devm_drm_panel_bridge_add instead, and fix the panel drivers as necessary if they don't report a connector type. like, help them help themselves. π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/gpu/drm/bridge/panel.c (yes, that's the source, yes, you're welcome) and here's the whole friend group, no cap:
drm_bridge_is_panel(9)drm_panel_bridge_add(9)drm_panel_bridge_add_typed(9)drm_panel_bridge_remove(9)drm_panel_bridge_set_orientation(9)devm_drm_panel_bridge_add(9)drmm_panel_bridge_add(9)drm_panel_bridge_connector(9)devm_drm_of_get_bridge(9)drmm_of_get_bridge(9)
π«Ά the sign-off π«Ά
this lil masterpiece comes to you straight out of ./drivers/gpu/drm/bridge, dated October 2026 β mark your calendars, screenshot it, send it to the group chat. πβ mwah π
π¦ 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