rio_get_asm (9) Linux Manual Page
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(u16vid, u16did, u16asm_vid, u16asm_did, struct rio_devfrom* );
Arguments
vid
-
- RIO vid to match or
RIO_ANY_IDto match all vids - RIO vid to match or
did
- RIO did to match or
RIO_ANY_IDto match all dids
asm_vid
- RIO asm_vid to match or
RIO_ANY_IDto match all asm_vids
asm_did
- RIO asm_did to match or
RIO_ANY_IDto match all asm_dids
from
- Previous RIO device found in search, or
NULLfor 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 [at] kernel.crashing.org>, <mporter [at] mvista.com>
- Author.
