^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/iio/devices/triggerX/trigger_now
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) KernelVersion: 2.6.38
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) This file is provided by the iio-trig-sysfs stand-alone trigger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) driver. Writing this file with any value triggers an event
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) driven driver, associated with this trigger, to capture data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) into an in kernel buffer. This approach can be valuable during
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) automated testing or in situations, where other trigger methods
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) are not applicable. For example no RTC or spare GPIOs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) X is the IIO index of the trigger.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) What: /sys/bus/iio/devices/triggerX/name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) KernelVersion: 2.6.39
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) The name attribute holds a description string for the current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) trigger. In order to associate the trigger with an IIO device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) one should write this name string to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) What: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) KernelVersion: 2.6.39
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) This attribute is provided by the iio-trig-sysfs stand-alone
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) driver and it is used to activate the creation of a new trigger.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) In order to achieve this, one should write a positive integer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) into the associated file, which will serve as the id of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) trigger. If the trigger with the specified id is already present
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) in the system, an invalid argument message will be returned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) What: /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) KernelVersion: 2.6.39
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) This attribute is used to unregister and delete a previously
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) created trigger from the list of available triggers. In order to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) achieve this, one should write a positive integer into the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) associated file, representing the id of the trigger that needs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) to be removed. If the trigger can't be found, an invalid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) argument message will be returned to the user.