rio_get_device_id(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms