rio_get_device_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rio_get_device_id(9) β€” the kernel API manual, but make it make sense πŸŽ€

Okay bestie, so this is a page from the Kernel API Manual β€” the rio_get_device_id(9) one β€” and it's literally so much simpler than it looks. It's giving "one job, does it well." Let's get into it ✨


🌸 NAME 🌸

rio_get_device_id β€” get the base/extended device id for a device 🫢

Like, that's the whole vibe. It scoops up a device's ID. Iconic behaviour, no notes.


πŸ¦‹ SYNOPSIS πŸ¦‹

u16 rio_get_device_id (struct rio_mport *port , u16 destid , u8 hopcount
);

Three things go in, one u16 comes out. Not me being obsessed with a function signature but she's clean πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the RIO master port. Like, the main character of the operation 🌟
  • destid β€” the Destination ID of the device. This is how we know which device we're talking about, iykyk πŸ’–
  • hopcount β€” the hopcount to the device. Yes, literally how many hops away it is πŸ‡

⭐ DESCRIPTION ⭐

So what does she actually do? She reads the base/extended device id from a device 🎯

And then? She returns the 8/16-bit device ID. That's it. That's the whole function. Short queen behaviour, no cap πŸ‘‘

Ngl, this is one of those "the name tells you everything" situations. Lowkey refreshing fr fr.

🌈 SEE ALSO 🌈

Bestie, the cross-references go deep. Buckle up, because this list is long and every single one of these is part of the RapidIO saga πŸ’œ

Kernel file ./drivers/rapidio/rio-scan.c, plus:

rio_destid_alloc(9), rio_destid_reserve(9), rio_destid_free(9), rio_destid_first(9), rio_destid_next(9), rio_set_device_id(9), rio_clear_locks(9), rio_enum_host(9), rio_device_has_destid(9), rio_release_dev(9), rio_is_switch(9), rio_setup_device(9), rio_sport_is_active(9), rio_get_host_deviceid_lock(9), rio_enum_peer(9), rio_enum_complete(9), rio_disc_peer(9), rio_mport_is_active(9), rio_update_route_tables(9), rio_init_em(9), rio_enum_mport(9), rio_build_route_tables(9), rio_disc_mport(9), rio_basic_attach(9)


Okay that's the page!! Mwah πŸ’‹ Big kiss, and a cute little sign-off: this one lives in the source/version corner at ./drivers/rapidio, dated October 2026, and the title is rio_get_device_id(9) β€” go forth and read those device IDs bestie, slay πŸ§šβ€β™€οΈβœ¨πŸ”₯

πŸ“¦ where this page comes from