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

NAME

6       devres_remove - Find a device resource and remove it
7

SYNOPSIS

9       void * devres_remove(struct device * dev, dr_release_t release,
10                            dr_match_t match, void * match_data);
11

ARGUMENTS

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

DESCRIPTION

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 returned.
29

RETURNS

31       Pointer to removed devres on success, NULL if not found.
32
34Kernel Hackers Manual 2.6.         June 2019                  DEVRES_REMOVE(9)
Impressum