rio_is_switch(9)
π NAME π
hii bestie π welcome to the rio_is_switch(9) page from the Kernel API Manual. Itβs literally about testing if a RIO device has switch capabilities β cute, focused, no cap β¨.
β¨ SYNOPSIS β¨
int rio_is_switch (struct rio_dev *rdev );
π ARGUMENTS π
rdevβ the RIO device, aka the thing youβre checking. Itβs astruct rio_dev *, periodt π .
π¦ DESCRIPTION π¦
okay so hereβs the vibe: rio_is_switch() gets the RIO device Processing Element Features register contents and tests for switch capabilities. Slay πΈ. It returns 1 if the device is a switch or 0 if it is not a switch. Not me being clear for once π.
Heads up bestie: the RIO device struct is freed. Thatβs in the original, so donβt skip it π.
π SEE ALSO π
Kernel file ./drivers/rapidio/rio-scan.c β and the whole iconic friend group π
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_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)
bye bestie π«Ά β this pageβs source/version is ./drivers/rapidio, dated October 2026, and itβs the rio_is_switch(9) manual page. mwah π
π¦ 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