drm_of_component_probe(9)
π drm_of_component_probe β a Kernel API Manual moment
okay bestie, so this page is from the Kernel API Manual (yes, that manual), and today's main character is drm_of_component_probe(9). buckle up, she's a probe function and she's iconic β¨
πΈ NAME πΈ
drm_of_component_probe β the generic probe function for a component based master, fr fr π«Ά
β¨ SYNOPSIS β¨
int drm_of_component_probe (struct device *dev , int
(*compare_of)(struct device *, void *) , const struct
component_master_ops *m_ops );
like, that's the whole vibe right there π
π ARGUMENTS π
devβ the master device containing the OF node. she's the one holding the node, okay πcompare_ofβ the compare function used for matching components. lowkey the matchmaker of the whole operation π§m_opsβ the component master ops to be used. these are the ops she's gonna run with π
π¦ DESCRIPTION π¦
so what she actually does: she parses the platform device OF node and binds all the components associated with the master. no cap, all of them.
the important little detail bestie β interface ports are added before the encoders, and that's specifically in order to satisfy their .bind requirements. it's giving "order matters, do not come for me" energy ππ₯
the bindings live here, go read them iykyk:
https://github.com/devicetree-org/dt-
schema/blob/main/dtschema/schemas/graph.yaml
and the return value? she returns zero if successful, or one of the standard error codes if it fails. that's it, that's the whole tea β
ngl the "standard error codes" part means you should actually check the return, bestie. don't just ignore her π
π SEE ALSO π
literally the whole drm_of.c friend group, periodt:
- Kernel file
./drivers/gpu/drm/drm_of.c overview(9)drm_of_crtc_port_mask(9)drm_of_find_possible_crtcs(9)drm_of_component_match_add(9)drm_of_get_panel_orientation(9)drm_of_find_panel_or_bridge(9)drm_of_lvds_get_dual_link_pixel_order(9)drm_of_lvds_get_dual_link_pixel_order_sink(9)drm_of_lvds_get_data_mapping(9)drm_of_get_data_lanes_count(9)drm_of_get_data_lanes_count_ep(9)drm_of_get_data_lanes_count_remote(9)drm_of_get_dsi_bus(9)
π sign-off π
and that's the page!! she lives in ./drivers/gpu/drm, she's dated October 2026, and she answers to the name drm_of_component_probe(9). go forth and probe responsibly, bestie ππ¦πβπ
π¦ 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