drm_of_get_d...count_remote(9)
π drm_of_get_d...count_remote(9) π
okay so bestie, welcome to the Kernel API Manual β¨ we're looking at drm_of_get_d...count_remote today and honestly? she's a little niche but she serves π
πΈ NAME πΈ
drm_of_get_data_lanes_count_remote β get that DSI/(e)DP data lane count by endpoint, no cap π
β¨ SYNOPSIS β¨
int drm_of_get_data_lanes_count_remote (const struct device_node *port ,
int port_reg , int reg , const unsigned int min , const unsigned int max );
like, that's the whole signature, literally copy it exactly, don't @ me π«Ά
π¦ ARGUMENTS π¦
portβ the DT port node of the DSI/(e)DP source or sink. either one bestie, she's flexible πport_regβ identifier (the value of theregproperty) of the parent port node. yes, the parent one, keep up πΈregβ identifier (the value of theregproperty) of the endpoint node. that's the child one, we love a family dynamic πminβ minimum supported number of data lanes. the floor, the bare minimum, respect it β¨maxβ maximum supported number of data lanes. the ceiling, the limit, the "know your worth" π
π₯ DESCRIPTION π₯
so what she does is: count the DT "data-lanes" property elements in the remote endpoint and then check for validity π
the way that this variant specifically uses the endpoint specifier β that's her whole thing, that's her main character energy π¦
β RETURN β
min..maxβ positive integer count of"data-lanes"elements. slay, we got numbers π-EINVALβ the"data-lanes"property is unsupported. it's giving invalid, bestie π-ENODEVβ the"data-lanes"property is missing. literally nowhere to be found, ghosted π
π§ SEE ALSO π§
- the Kernel file
./drivers/gpu/drm/drm_of.coverview(9) β start here, iykyk π drm_of_crtc_port_mask(9)drm_of_find_possible_crtcs(9)drm_of_component_match_add(9)drm_of_component_probe(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_dsi_bus(9)
like, read them all, they're the friend group and they all ate π β¨
ok that's the page!! go count some lanes, bestie π«Ά
mwah π this little love letter lives in ./drivers/gpu/drm, dated October 2026 β that's the source, the version and the date all in one cute sign-off, periodt ππ
π¦ 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