rio_destid_alloc(9)
π rio_destid_alloc β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual page for rio_destid_alloc β yes it's a section 9 function, yes it's living deep in the RapidIO guts, and yes we're gonna make it make sense π
β¨ NAME β¨
rio_destid_alloc β allocate the next available destID for a given network π¦
β¨ SYNOPSIS β¨
u16 rio_destid_alloc (struct rio_net *net );
like that's literally it, one argument, one u16 coming back at you πΈ
β¨ ARGUMENTS β¨
netβ the RIO network, obviously π this is the network you're grabbing a destID from
β¨ DESCRIPTION β¨
so what it does: it returns the next available device destination ID for the RIO network you specified. iconic behavior, no notes β¨
and like, it doesn't just look at it β it marks the allocated ID as one in use, so nobody else can snatch it up. main character energy fr fr π
but if there's no new destID available? it returns RIO_INVALID_DESTID π that's your "sorry bestie, nothing left" signal, no cap.
β¨ SEE ALSO β¨
the whole friend group π«Ά β go say hi:
- kernel file
./drivers/rapidio/rio-scan.c(that's where the lore lives) rio_destid_reserve(9)rio_destid_free(9)rio_destid_first(9)rio_destid_next(9)rio_get_device_id(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)
and that's the whole page, bestie π this one came from ./drivers/rapidio, dated October 2026 β so like, fresh off the kernel press π mwah, go allocate something iconic ππ§
π¦ 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