drm_of_get_d...nes_count_ep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_of_get_data_lanes_count_ep(9) β€” the group-chat version ✨

okay so bestie, welcome to the Kernel API Manual page for drm_of_get_d...nes_count_ep(9) β€” yes the title is truncated, no that's not a typo, that's just how the manpage renders it, iykyk πŸŽ€. We're in the <pink>DRM subsystem</pink> neighborhood, specifically the devicetree helpers in ./drivers/gpu/drm, and this little icon is gonna count your data lanes for you. Slay.


🌸 NAME 🌸

drm_of_get_data_lanes_count_ep β€” get the DSI/(e)DP data lane count by endpoint. That's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

int drm_of_get_data_lanes_count_ep (const struct device_node *port , int
port_reg , int reg , const unsigned int min , const unsigned int max );

like, it returns an int, it takes a const struct device_node *port, two ints, and two const unsigned ints. iconic signature honestly. πŸ’œ


🫢 ARGUMENTS 🫢

  • port β€” the DT port node of your DSI/(e)DP source or sink. either one, she's flexible like that. πŸ’β€β™€οΈ
  • port_reg β€” the identifier (aka the value of the reg property) of the parent port node. important: the parent. don't mix them up bestie. πŸ™ˆ
  • reg β€” the identifier (value of the reg property) of the endpoint node itself.
  • min β€” the minimum supported number of data lanes. the floor, the bare minimum, the "i guess" tier. 😭
  • max β€” the maximum supported number of data lanes. the ceiling, the main character upper bound. πŸ‘‘

πŸŽ€ DESCRIPTION πŸŽ€

So what does she do? She counts the elements of the DT "data-lanes" property and checks them for validity. that's it, that's the function. βœ…

This particular variant uses the endpoint specifier β€” that's literally the _ep in the name, the way that detail lives right there in the function name is so satisfying honestly. 🧚


🌈 RETURN 🌈

the vibes she can return, in list form because we love structure:

  • min..max β€” a positive integer count of "data-lanes" elements. the good ending. πŸ“
  • -EINVAL β€” the "data-mapping" property is unsupported. not the good ending. πŸ’€
  • -ENODEV β€” the "data-mapping" property is missing. also not the good ending. 😭
lowkey note: those last two are about "data-mapping" even though the function is about "data-lanes" β€” yes it's giving plot twist, but that's what the manpage says, so that's what we're saying. no cap. 🫑

πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, they're all in the same friend group:

  • 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_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_remote(9)
  • drm_of_get_dsi_bus(9)

⭐ and that's the whole page!! this one came from ./drivers/gpu/drm, dated October 2026 β€” so like, future vibes fr fr. go count some lanes, ily, bye!! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from