---
name: "struct_rio_route_ops"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_rio_route_ops"
---

# struct\_rio\_route\_ops(9)

Per-switch route operations

## NAME

struct\_rio\_route\_ops - Per-switch route operations

## SYNOPSIS

```
struct rio_route_ops {
  u16 vid;
  u16 did;
  int (* add_hook) (struct rio_mport * mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port);
  int (* get_hook) (struct rio_mport * mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 * route_port);
};
```

## MEMBERS

vid

RIO vendor ID

did

RIO device ID

add\_hook

Callback that adds a route entry

get\_hook

Callback that gets a route entry

## DESCRIPTION

Defines the operations that are necessary to manipulate the route tables for a particular RIO switch device.

## AUTHOR

**Matt Porter** \<mporter@kernel.crashing.org\>, \<mporter@mvista.com\>

Author.

## COPYRIGHT
