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