of_drm_find_and_get_bridge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_bridge control struct on success πŸ”₯
  • NULL on failure πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, fr fr πŸ‘‘:


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