Scroll to navigation

STRUCT IIO_BUFFER_SE(9) Industrial I/O core STRUCT IIO_BUFFER_SE(9)

NAME

struct_iio_buffer_setup_ops - buffer setup related callbacks

SYNOPSIS

struct iio_buffer_setup_ops {
  int (* preenable) (struct iio_dev *);
  int (* postenable) (struct iio_dev *);
  int (* predisable) (struct iio_dev *);
  int (* postdisable) (struct iio_dev *);
  bool (* validate_scan_mask) (struct iio_dev *indio_dev,const unsigned long *scan_mask);
};  

MEMBERS

preenable
[DRIVER] function to run prior to marking buffer enabled
postenable
[DRIVER] function to run after marking buffer enabled
predisable
[DRIVER] function to run prior to marking buffer disabled
postdisable
[DRIVER] function to run after marking buffer disabled
validate_scan_mask
[DRIVER] function callback to check whether a given scan mask is valid for the device.

AUTHOR

Daniel Baluta <daniel.baluta@intel.com>
Author.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.