drm_of_get_data_lanes_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 🫢


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