RIO_GET_ASM(9) | RapidIO driver interface | RIO_GET_ASM(9) |
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
did
asm_vid
asm_did
from
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>
COPYRIGHT¶
May 2024 | Kernel Hackers Manual 2.6. |