Skip to Content
Linux Device Drivers Development
book

Linux Device Drivers Development

by John Madieu
October 2017
Intermediate to advanced
586 pages
14h 8m
English
Packt Publishing
Content preview from Linux Device Drivers Development

IIO trigger and sysfs (user space)

There are two locations in sysfs related to triggers:

  • /sys/bus/iio/devices/triggerY/, which is created once an IIO trigger is registered with the IIO core and corresponds to triggers with index Y. There is at least one attribute in the directory:
    • name, which is the trigger name that can be later used for association with a device
  • The /sys/bus/iio/devices/iio:deviceX/trigger/* directory will be automatically created if your device supports a triggered buffer. You can associate a trigger with our device by writing the trigger's name in the current_trigger file.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Device Drivers, Second Edition

Linux Device Drivers, Second Edition

Jonathan Corbet, Alessandro Rubini
Linux Device Drivers, 3rd Edition

Linux Device Drivers, 3rd Edition

Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman

Publisher Resources

ISBN: 9781785280009Supplemental Content