drm_of_get_data_lanes_count(9)
hiii bestie π okay so this is drm_of_get_data_lanes_count(9) from the Kernel API Manual β the lil helper that gets your DSI/(e)DP data lane count. no cap, itβs giving βcount the DT property and check for validityβ. letβs get into it β¨
π NAME π
drm_of_get_data_lanes_count - Get DSI/(e)DP data lane count
β¨ SYNOPSIS β¨
int drm_of_get_data_lanes_count (const struct device_node *endpoint ,
const unsigned int min , const unsigned int max );
π ARGUMENTS π
endpointβ DT endpoint node of the DSI/(e)DP source or sink. thatβs the node, bestie.minβ minimum supported number of data lanes. the lower limit, periodt.maxβ maximum supported number of data lanes. the upper limit, slay.
π¦ DESCRIPTION π¦
okay so the actual job is: count DT "data-lanes" property elements and check for validity. thatβs the whole plot π¬
π RETURN π
min..maxβ positive integer count of"data-lanes"elements. slay β¨-veβ the"data-lanes"property is missing or invalid. oof π-EINVALβ the"data-lanes"property is unsupported. π
π₯ SEE ALSO π₯
go read these too, bestie π«Ά
- Kernel file
./drivers/gpu/drm/drm_of.coverview(9) 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_ep(9)drm_of_get_data_lanes_count_remote(9)drm_of_get_dsi_bus(9)
byeee bestie π«Ά mwah π this pageβs source/version is ./drivers/gpu/drm, itβs dated October 2026, and the manual is drm_of_get_data_lanes_count(9). 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