1DEVRES_DESTROY(9) Driver Basics DEVRES_DESTROY(9)
2
3
4
6 devres_destroy - Find a device resource and destroy it
7
9 int devres_destroy(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 and freed.
29
31 0 if devres is found and freed, -ENOENT if not found.
32
34Kernel Hackers Manual 2.6. November 2011 DEVRES_DESTROY(9)