RIO_ROUTE_ADD_ENTRY(9) | RapidIO driver interface | RIO_ROUTE_ADD_ENTRY(9) |
NAME¶
rio_route_add_entry - Add a route entry to a switch routing table
SYNOPSIS¶
int rio_route_add_entry(struct rio_dev * rdev, u16 table, u16 route_destid, u8 route_port, int lock);
ARGUMENTS¶
struct rio_dev * rdev
u16 table
u16 route_destid
u8 route_port
int lock
DESCRIPTION¶
If available calls the switch specific add_entry method to add a route entry into a switch routing table. Otherwise uses standard RT update method as defined by 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.
AUTHOR¶
Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |