---
name: "struct_iio_trigger_ops"
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/struct_iio_trigger_ops"
---

# struct\_iio\_trigger\_ops(9)

operations structure for an iio\_trigger.

## NAME

struct\_iio\_trigger\_ops - operations structure for an iio\_trigger.

## SYNOPSIS

```
struct iio_trigger_ops {
  struct module * owner;
  int (* set_trigger_state) (struct iio_trigger *trig, bool state);
  int (* try_reenable) (struct iio_trigger *trig);
  int (* validate_device) (struct iio_trigger *trig,struct iio_dev *indio_dev);
};
```

## MEMBERS

owner

used to monitor usage count of the trigger.

set\_trigger\_state

switch on/off the trigger on demand

try\_reenable

function to reenable the trigger when the use count is zero (may be NULL)

validate\_device

function to validate the device when the current trigger gets changed.

## DESCRIPTION

This is typically static const within a driver and shared by instances of a given device.

## AUTHOR

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

Author.

## COPYRIGHT
