---
name: "devm_add_action"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/devm_add_action"
---

# devm\_add\_action(9)

add a custom action to list of managed resources

## NAME

devm\_add\_action - add a custom action to list of managed resources

## SYNOPSIS

**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

## DESCRIPTION

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

## COPYRIGHT
