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. 21e0950d3bSCristina Opriceana 22e0950d3bSCristina OpriceanaWhat: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger 23e0950d3bSCristina OpriceanaKernelVersion: 2.6.39 24e0950d3bSCristina OpriceanaContact: linux-iio@vger.kernel.org 25e0950d3bSCristina OpriceanaDescription: 26e0950d3bSCristina Opriceana This attribute is provided by the iio-trig-sysfs stand-alone 27e0950d3bSCristina Opriceana driver and it is used to activate the creation of a new trigger. 28e0950d3bSCristina Opriceana In order to achieve this, one should write a positive integer 29e0950d3bSCristina Opriceana into the associated file, which will serve as the id of the 30e0950d3bSCristina Opriceana trigger. If the trigger with the specified id is already present 31e0950d3bSCristina Opriceana in the system, an invalid argument message will be returned. 32*8d96fc27SCristina Opriceana 33*8d96fc27SCristina OpriceanaWhat: /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger 34*8d96fc27SCristina OpriceanaKernelVersion: 2.6.39 35*8d96fc27SCristina OpriceanaContact: linux-iio@vger.kernel.org 36*8d96fc27SCristina OpriceanaDescription: 37*8d96fc27SCristina Opriceana This attribute is used to unregister and delete a previously 38*8d96fc27SCristina Opriceana created trigger from the list of available triggers. In order to 39*8d96fc27SCristina Opriceana achieve this, one should write a positive integer into the 40*8d96fc27SCristina Opriceana associated file, representing the id of the trigger that needs 41*8d96fc27SCristina Opriceana to be removed. If the trigger can't be found, an invalid 42*8d96fc27SCristina Opriceana argument message will be returned to the user. 43