devm_iio_trigger_alloc(9)

devm_iio_trigger_alloc9

Resource-managed iio_trigger_alloc

Usage

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

Overview

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 <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.