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

# rio\_register\_scan(9)

enumeration/discovery method registration interface

## NAME

rio\_register\_scan - enumeration/discovery method registration interface

## SYNOPSIS

**int rio\_register\_scan(int** *mport\_id***, struct rio\_scan \*** *scan\_ops***);**

## ARGUMENTS

*mport\_id*

mport device ID for which fabric scan routine has to be set (RIO\_MPORT\_ANY = set for all available mports)

*scan\_ops*

enumeration/discovery operations structure

## DESCRIPTION

Registers enumeration/discovery operations with RapidIO subsystem and attaches it to the specified mport device (or all available mports if RIO\_MPORT\_ANY is specified).

Returns error if the mport already has an enumerator attached to it. In case of RIO\_MPORT\_ANY skips mports with valid scan routines (no error).

## AUTHOR

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

Author.

## COPYRIGHT
