---
name: "devm_iio_trigger_alloc"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/devm_iio_trigger_alloc"
---

# devm\_iio\_trigger\_alloc(9)

Resource-managed iio\_trigger\_alloc

## NAME

devm\_iio\_trigger\_alloc - Resource-managed **iio\_trigger\_alloc**

## SYNOPSIS

**struct iio\_trigger \* devm\_iio\_trigger\_alloc(struct device \*** *dev***, const char \*** *fmt***,** *...***);**

## ARGUMENTS

*dev*

Device to allocate iio\_trigger for

*fmt*

trigger name format. If it includes format specifiers, the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.

*...*

variable arguments

## DESCRIPTION

Managed iio\_trigger\_alloc. iio\_trigger allocated with this function is automatically freed on driver detach.

If an iio\_trigger allocated with this function needs to be freed separately, **devm\_iio\_trigger\_free** must be used.

## RETURN

Pointer to allocated iio\_trigger on success, NULL on failure.

## AUTHOR

**Daniel Baluta** \<daniel.baluta@intel.com\>

Author.

## COPYRIGHT
