rio_route_get_entry(9)
π¦ rio_route_get_entry(9) π¦
okay so welcome to the Kernel API Manual page for rio_route_get_entry, bestie β this is the little function that reads one entry out of a switch routing table, and it's honestly giving useful-core energy π
β¨ NAME β¨
rio_route_get_entry β read an entry from a switch routing table. that's it, that's the name, no cap π
πΈ SYNOPSIS πΈ
int rio_route_get_entry (struct rio_dev *rdev , u16 table , u16
route_destid , u8 *route_port , int lock );
π ARGUMENTS π
rdevβ the RIO device, obvi π¦tableβ the routing table IDroute_destidβ the destination ID to be routedroute_portβ pointer to read the port number intolockβ apply a hardware lock on switch device flag (1=lock,0=no_lock)
π DESCRIPTION π
so here's the tea: if it's available, this calls the switch specific get_entry method to fetch a route entry from a switch routing table. otherwise it uses the standard RT read method as defined by the RapidIO specification π₯
a specific routing table can be selected using the table argument if a switch has per port routing tables, or the standard (or global) table may be used by passing RIO_GLOBAL_TABLE in table β¨
returns 0 on success or -EINVAL on failure. periodt π
π SEE ALSO π
the rapidio bestie squad, assembled:
- Kernel file
./drivers/rapidio/rio.c rio_local_get_device_id(9)rio_query_mport(9)rio_alloc_net(9)rio_local_set_device_id(9)rio_add_device(9)rio_request_inb_mbox(9)rio_release_inb_mbox(9)rio_request_outb_mbox(9)rio_release_outb_mbox(9)rio_setup_inb_dbell(9)rio_request_inb_dbell(9)rio_release_inb_dbell(9)rio_request_outb_dbell(9)rio_release_outb_dbell(9)rio_add_mport_pw_handler(9)rio_del_mport_pw_handler(9)rio_request_inb_pwrite(9)rio_release_inb_pwrite(9)rio_pw_enable(9)rio_map_inb_region(9)rio_unmap_inb_region(9)rio_map_outb_region(9)rio_unmap_outb_region(9)rio_mport_get_physefb(9)rio_get_comptag(9)rio_set_port_lockout(9)rio_enable_rx_tx_port(9)rio_chk_dev_route(9)rio_mport_chk_dev_access(9)rio_chk_dev_access(9)rio_get_input_status(9)rio_clr_err_stopped(9)rio_inb_pwrite_handler(9)rio_mport_get_efb(9)rio_mport_get_feature(9)rio_std_route_add_entry(9)rio_std_route_get_entry(9)rio_std_route_clr_table(9)rio_lock_device(9)rio_unlock_device(9)rio_route_add_entry(9)rio_route_clr_table(9)rio_request_mport_dma(9)rio_release_dma(9)rio_dma_prep_xfer(9)rio_register_scan(9)rio_mport_scan(9)
and that's the whole page, bestie π«Ά source/location: ./drivers/rapidio; date stamp: October 2026; page: rio_route_get_entry(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