---
name: "struct_rio_switch"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_rio_switch"
---

# struct\_rio\_switch(9)

RIO switch info

## NAME

struct\_rio\_switch - RIO switch info

## SYNOPSIS

```
struct rio_switch {
  struct list_head node;
  u8 * route_table;
  u32 port_ok;
  struct rio_switch_ops * ops;
  spinlock_t lock;
  struct rio_dev * nextdev[0];
};
```

## MEMBERS

node

Node in global list of switches

route\_table

Copy of switch routing table

port\_ok

Status of each port (one bit per port) - OK=1 or UNINIT=0

ops

pointer to switch-specific operations

lock

lock to serialize operations updates

nextdev\[0\]

Array of per-port pointers to the next attached device

## AUTHOR

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

Author.

## COPYRIGHT
