---
name: "rio_get_asm"
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_get_asm"
---

# rio\_get\_asm(9)

Begin or continue searching for a RIO device by vid/did/asm\_vid/asm\_did

## NAME

rio\_get\_asm - Begin or continue searching for a RIO device by vid/did/asm\_vid/asm\_did

## SYNOPSIS

**struct rio\_dev \* rio\_get\_asm(u16** *vid***, u16** *did***, u16** *asm\_vid***, u16** *asm\_did***, struct rio\_dev \*** *from***);**

## ARGUMENTS

*vid*

RIO vid to match or **RIO\_ANY\_ID** to match all vids

*did*

RIO did to match or **RIO\_ANY\_ID** to match all dids

*asm\_vid*

RIO asm\_vid to match or **RIO\_ANY\_ID** to match all asm\_vids

*asm\_did*

RIO asm\_did to match or **RIO\_ANY\_ID** to match all asm\_dids

*from*

Previous RIO device found in search, or **NULL** for new search

## DESCRIPTION

Iterates through the list of known RIO devices. If a RIO device is found with a matching *vid*, *did*, *asm\_vid*, *asm\_did*, the reference count to the device is incrememted and a pointer to its device structure is returned. Otherwise, **NULL** is returned. A new search is initiated by passing **NULL** to the *from* argument. Otherwise, if *from* is not **NULL**, searches continue from next device on the global list. The reference count for *from* is always decremented if it is not **NULL**.

## AUTHOR

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

Author.

## COPYRIGHT
