devm_add_action(9)

devm_add_action9

Add a custom action to list of managed resources

Usage

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

Arguments

dev

Device that owns the action

action

Function that should be called

data

Pointer to data passed to action implementation

Overview

This adds a custom action to the list of managed resources so that it gets executed as part of standard resource unwinding.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.