1DEVRES_FOR_EACH_RES(9)           Driver Basics          DEVRES_FOR_EACH_RES(9)
2
3
4

NAME

6       devres_for_each_res - Resource iterator
7

SYNOPSIS

9       void devres_for_each_res(struct device * dev, dr_release_t release,
10                                dr_match_t match, void * match_data,
11                                void (*fn) (struct device *, void *, void *),
12                                void * data);
13

ARGUMENTS

15       dev
16           Device to iterate resource from
17
18       release
19           Look for resources associated with this release function
20
21       match
22           Match function (optional)
23
24       match_data
25           Data for the match function
26
27       fn
28           Function to be called for each matched resource.
29
30       data
31           Data for fn, the 3rd parameter of fn
32

DESCRIPTION

34       Call fn for each devres of dev which is associated with release and for
35       which match returns 1.
36

RETURNS

38       void
39
41Kernel Hackers Manual 3.10         June 2019            DEVRES_FOR_EACH_RES(9)
Impressum