---
name: "rio_get_swpinfo_tports"
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/rio_get_swpinfo_tports"
---

# rio\_get\_swpinfo\_tports(9)

Gets total number of ports on the switch

## NAME

rio\_get\_swpinfo\_tports - Gets total number of ports on the switch

## SYNOPSIS

**u8 rio\_get\_swpinfo\_tports(struct rio\_mport \*** *mport***, u16** *destid***, u8** *hopcount***);**

## ARGUMENTS

*mport*

Master port to send transaction

*destid*

Destination ID associated with the switch

*hopcount*

Number of hops to the device

## DESCRIPTION

Returns total numbers of ports implemented by the switch device.

## AUTHOR

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

Author.

## COPYRIGHT
