rio_std_route_get_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rio_std_route_get_entry(9) β€” from the Kernel API Manual, bestie ✨

Okay so picture this: you're deep in the RapidIO stack, you've got a switch, you've got a destID, and you just wanna know which port that thing is pointed at. That's this function. It reads the switch route table entry (the port number) that's associated with the destID you specified, and it does it using the standard registers defined in RIO specification rev.1.3 πŸŽ€

Like, it's the textbook way to peek at routing. No cap. πŸ‘‘


🌸 SYNOPSIS 🌸

int rio_std_route_get_entry (struct rio_mport *mport , u16 destid , u8
hopcount , u16 table , u16 route_destid , u8 *route_port );

Return type is int, obviously, and it takes six args β€” let's go through them one by one, because every single one matters 🫢


✨ ARGUMENTS ✨

  • mport β€” the master port that issues the transaction. She's the one doing the talking πŸ’¬
  • destid β€” the Destination ID of the device. The whole "who are we even asking about" of it all.
  • hopcount β€” number of switch hops to the device. Count 'em. Every hop is a vibe check on the way there πŸ¦‹
  • table β€” the routing table ID (global or port-specific). Pick your table, bestie, there's options πŸ‘€
  • route_destid β€” the destID entry in the RT. Yes, this is a different destid from destid above β€” do not mix them up, I'm begging 😭
  • route_port β€” the returned destination port for the specified destID. It's a pointer, so this is where the answer comes back out to you. The main character of the out-params, fr fr πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/rapidio/rio.c β€” go read it, it's giving lore β€” plus these absolute icons:


Quick PSA: destid and route_destid are two separate parameters and they are not the same thing. One is the device you're asking about, the other is the entry in the RT. Ship them swapped and that's on you, not me πŸ’€

Okay that's the whole page, mwah πŸ’‹ This lil icon comes from ./drivers/rapidio and it's dated October 2026, and yes the page itself is called rio_std_route_get_entry(9). Slay, go read your route tables responsibly πŸŒŸπŸŽ€

πŸ“¦ where this page comes from