/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/iio
NameSizeModeActions
accel/-0755rm
adc/-0755rm
common/-0755rm
dac/-0755rm
frequency/-0755rm
gyro/-0755rm
imu/-0755rm
magnetometer/-0755rm
timer/-0755rm
buffer-dma.h46730644editdlrm
buffer-dmaengine.h3890644editdlrm
buffer.h17680644editdlrm
buffer_impl.h53050644editdlrm
configfs.h4050644editdlrm
consumer.h136990644editdlrm
driver.h8320644editdlrm
events.h22960644editdlrm
hw-consumer.h6830644editdlrm
iio.h270770644editdlrm
kfifo_buf.h3720644editdlrm
machine.h12350644editdlrm
sw_device.h18820644editdlrm
sw_trigger.h19210644editdlrm
sysfs.h48420644editdlrm
trigger.h54860644editdlrm
triggered_buffer.h7810644editdlrm
triggered_event.h3520644editdlrm
trigger_consumer.h18300644editdlrm
types.h16600644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/iio/trigger_consumer.h (1830B)
/* The industrial I/O core, trigger consumer functions * * Copyright (c) 2008-2011 Jonathan Cameron * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. */ #ifndef __LINUX_IIO_TRIGGER_CONSUMER_H__ #define __LINUX_IIO_TRIGGER_CONSUMER_H__ #include #include struct iio_dev; struct iio_trigger; /** * struct iio_poll_func - poll function pair * * @indio_dev: data specific to device (passed into poll func) * @h: the function that is actually run on trigger * @thread: threaded interrupt part * @type: the type of interrupt (basically if oneshot) * @name: name used to identify the trigger consumer. * @irq: the corresponding irq as allocated from the * trigger pool * @timestamp: some devices need a timestamp grabbed as soon * as possible after the trigger - hence handler * passes it via here. **/ struct iio_poll_func { struct iio_dev *indio_dev; irqreturn_t (*h)(int irq, void *p); irqreturn_t (*thread)(int irq, void *p); int type; char *name; int irq; s64 timestamp; }; struct iio_poll_func *iio_alloc_pollfunc(irqreturn_t (*h)(int irq, void *p), irqreturn_t (*thread)(int irq, void *p), int type, struct iio_dev *indio_dev, const char *fmt, ...); void iio_dealloc_pollfunc(struct iio_poll_func *pf); irqreturn_t iio_pollfunc_store_time(int irq, void *p); void iio_trigger_notify_done(struct iio_trigger *trig); /* * Two functions for common case where all that happens is a pollfunc * is attached and detached from a trigger */ int iio_triggered_buffer_postenable(struct iio_dev *indio_dev); int iio_triggered_buffer_predisable(struct iio_dev *indio_dev); #endif