12192c6f9SPeter MeerwaldWhat: /sys/bus/iio/devices/triggerX/trigger_now 22192c6f9SPeter MeerwaldKernelVersion: 2.6.38 32192c6f9SPeter MeerwaldContact: linux-iio@vger.kernel.org 42192c6f9SPeter MeerwaldDescription: 52192c6f9SPeter Meerwald This file is provided by the iio-trig-sysfs stand-alone trigger 62192c6f9SPeter Meerwald driver. Writing this file with any value triggers an event 72192c6f9SPeter Meerwald driven driver, associated with this trigger, to capture data 82192c6f9SPeter Meerwald into an in kernel buffer. This approach can be valuable during 92192c6f9SPeter Meerwald automated testing or in situations, where other trigger methods 102192c6f9SPeter Meerwald are not applicable. For example no RTC or spare GPIOs. 112192c6f9SPeter Meerwald X is the IIO index of the trigger. 12655665d6SCristina Opriceana 13655665d6SCristina OpriceanaWhat: /sys/bus/iio/devices/triggerX/name 14655665d6SCristina OpriceanaKernelVersion: 2.6.39 15655665d6SCristina OpriceanaContact: linux-iio@vger.kernel.org 16655665d6SCristina OpriceanaDescription: 17655665d6SCristina Opriceana The name attribute holds a description string for the current 18655665d6SCristina Opriceana trigger. In order to associate the trigger with an IIO device 19655665d6SCristina Opriceana one should write this name string to 20655665d6SCristina Opriceana /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger. 21*e0950d3bSCristina Opriceana 22*e0950d3bSCristina OpriceanaWhat: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger 23*e0950d3bSCristina OpriceanaKernelVersion: 2.6.39 24*e0950d3bSCristina OpriceanaContact: linux-iio@vger.kernel.org 25*e0950d3bSCristina OpriceanaDescription: 26*e0950d3bSCristina Opriceana This attribute is provided by the iio-trig-sysfs stand-alone 27*e0950d3bSCristina Opriceana driver and it is used to activate the creation of a new trigger. 28*e0950d3bSCristina Opriceana In order to achieve this, one should write a positive integer 29*e0950d3bSCristina Opriceana into the associated file, which will serve as the id of the 30*e0950d3bSCristina Opriceana trigger. If the trigger with the specified id is already present 31*e0950d3bSCristina Opriceana in the system, an invalid argument message will be returned. 32