Conversation
Attributes found at path /sys/bus/iio/devices/iio:deviceX/events/ that are device specific and not channel specific are to be considered event type attributes. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
These changes enable only the local backend to detect and construct the event atttributes. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Add EVENT keyword recognition to lexer and parser grammar rules for reading and writing event attributes via the text protocol. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
|
I’m not convinced that the right abstraction here is something that simply exposes an interface where the user must poll for events. (it's better than what exists today, but still doesn't match what the normal use case is). In the Linux IIO subsystem, events are conceptually hardware-driven notifications (threshold crossings, data ready, buffer watermarks, etc.), not just another value to periodically check. For example, the kernel exposes event channels that deliver timestamped events through a character device once they are enabled via sysfs. Typical workflow (per the sysfs-bus-iio ABI):
This is inherently event-driven, not just attribute polling. IMHO - what this means is we need a push model ( |
PR Description
See discussion #1368 (comment).
Things left to do in this PR:
PR Type
PR Checklist