rio_sport_is_active(9)
π rio_sport_is_active π
okay so bestie, welcome to the Kernel API Manual corner of the group chat β¨ this one is all about rio_sport_is_active, and it's lowkey giving βis this switch port even alive?β energy π
β¨ NAME β¨
rio_sport_is_active β literally tests if a switch port has an active connection. periodt π
πΈ SYNOPSIS πΈ
int rio_sport_is_active (struct rio_dev *rdev , int sp );
π ARGUMENTS π
rdevβ RapidIO device object, your main character device struct π«Άspβ switch port number, the exact port we're checking on π¦
π DESCRIPTION π
okay so the tea β: this reads the port error status CSR for a particular switch port to determine if the port has an active link. Then it returns RIO_PORT_N_ERR_STS_PORT_OK if the port is active, or 0 if it is inactive. That's the whole vibe check, no cap π
π₯ SEE ALSO π₯
Kernel file ./drivers/rapidio/rio-scan.c β plus the whole RapidIO friend group, all listed here so nobody gets left on read:
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_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)
mwah π source/version is ./drivers/rapidio, date is October 2026, and yes bestie this was rio_sport_is_active(9) β byeee π¦
π¦ 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