1DEVRES_RELEASE(9) Driver Basics DEVRES_RELEASE(9)
2
3
4
6 devres_release - Find a device resource and destroy it, calling release
7
9 int devres_release(struct device * dev, dr_release_t release,
10 dr_match_t match, void * match_data);
11
13 dev
14 Device to find resource from
15
16 release
17 Look for resources associated with this release function
18
19 match
20 Match function (optional)
21
22 match_data
23 Data for the match function
24
26 Find the latest devres of dev associated with release and for which
27 match returns 1. If match is NULL, it's considered to match all. If
28 found, the resource is removed atomically, the release function called
29 and the resource freed.
30
32 0 if devres is found and freed, -ENOENT if not found.
33
35Kernel Hackers Manual 3.10 June 2019 DEVRES_RELEASE(9)