rio_basic_attach(9)
π rio_basic_attach(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual page for rio_basic_attach(9). This one is short but iconic: it's the attach function for the basic RapidIO enumeration/discovery method. No cap π.
β¨ NAME β¨
rio_basic_attach β the dash after it is followed by literally nothing, so there's no extra one-line description here. Just the function name doing its main-character thing π
.
π¦ SYNOPSIS π¦
The signature is giving "I return an int and I take zero arguments":
int rio_basic_attach (void );
π ARGUMENTS π
voidβ no arguments. Nothing to pass, nothing to vibe-check, just empty on purpose π«Ά.
π DESCRIPTION π
Okay so when this enumeration/discovery method is loaded as a module, this function registers its specific enumeration and discover routines for all available RapidIO mport devices. That's the whole glow-up β¨.
The "scan" command line parameter controls the ability of the module to start RapidIO enumeration/discovery automatically. So yeah, that parameter is the little switch in charge of the auto-start vibes π.
It returns 0 for success or -EIO if it's unable to register itself. Very demure, very clear π.
Heads up bestie: this enumeration/discovery method cannot be unloaded and therefore does not provide a matching cleanup_module routine. That's not a missing detail β it's literally how it is, so don't come for it π.
π₯ SEE ALSO π₯
Kernel file ./drivers/rapidio/rio-scan.c β and the whole function friend group is:
rio_destid_alloc(9)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)
Mwah π β this page is from the Kernel API Manual, source/version ./drivers/rapidio, dated October 2026. k bye bestie, go register those routines fr fr πβ¨
π¦ 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