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

NAME

6       devm_add_action - add a custom action to list of managed resources
7

SYNOPSIS

9       int devm_add_action(struct device * dev, void (*action) (void *),
10                           void * data);
11

ARGUMENTS

13       dev
14           Device that owns the action
15
16       action
17           Function that should be called
18
19       data
20           Pointer to data passed to action implementation
21

DESCRIPTION

23       This adds a custom action to the list of managed resources so that it
24       gets executed as part of standard resource unwinding.
25
27Kernel Hackers Manual 3.10         June 2019                DEVM_ADD_ACTION(9)
Impressum