1RIO_GET_DEVICE(9)          RapidIO driver interface          RIO_GET_DEVICE(9)
2
3
4

NAME

6       rio_get_device - Begin or continue searching for a RIO device by
7       vid/did
8

SYNOPSIS

10       struct rio_dev * rio_get_device(u16 vid, u16 did,
11                                       struct rio_dev * from);
12

ARGUMENTS

14       vid
15           RIO vid to match or RIO_ANY_ID to match all vids
16
17       did
18           RIO did to match or RIO_ANY_ID to match all dids
19
20       from
21           Previous RIO device found in search, or NULL for new search
22

DESCRIPTION

24       Iterates through the list of known RIO devices. If a RIO device is
25       found with a matching vid and did, the reference count to the device is
26       incrememted and a pointer to its device structure is returned.
27       Otherwise, NULL is returned. A new search is initiated by passing NULL
28       to the from argument. Otherwise, if from is not NULL, searches continue
29       from next device on the global list. The reference count for from is
30       always decremented if it is not NULL.
31

AUTHOR

33       Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
34           Author.
35
37Kernel Hackers Manual 2.6.         June 2019                 RIO_GET_DEVICE(9)
Impressum