drm_of_get_d...count_remote(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the reg property) of the parent port node. yes, the parent one, keep up 🌸
  • reg β€” identifier (the value of the reg property) 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 🧚

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