linux-stable/tools/iio
Zach DeCook c054fe9936 iio: event_monitor: Flush output on event
By flushing the output, iio_event_monitor can be more useful to programs
chained along with it.

  iio_event_monitor stk3310 | awk '/rising/{system("my_unlockscreen.sh")} /falling/{system("my_lockscreen.sh")}'

Without this flush, the above example would buffer a number of events,
then after a while run the lock/unlock scripts several times.

Signed-off-by: Zach DeCook <zachdecook@librem.one>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-12-16 12:20:35 +00:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Build tools: iio: Correctly add make dependency for iio_utils 2019-11-10 17:11:06 +00:00
iio_event_monitor.c iio: event_monitor: Flush output on event 2021-12-16 12:20:35 +00:00
iio_generic_buffer.c tools: iio: convert iio_generic_buffer to use new IIO buffer API 2021-03-11 20:47:07 +00:00
iio_utils.c tools: iio: convert iio_generic_buffer to use new IIO buffer API 2021-03-11 20:47:07 +00:00
iio_utils.h iio: event_monitor: Enable events before monitoring 2021-03-25 19:13:52 +00:00
lsiio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile tools: iio: convert iio_generic_buffer to use new IIO buffer API 2021-03-11 20:47:07 +00:00