sysfs: fix trigger parameters index

The parameter attributes (outside the control) do not have an index.

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
tools: add reduce option to zio-dump

it reduces the number of printed data. The option accepts a numeric value.
This value is the number of bytes to show at the beginning and at
the end of a buffer

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
sysfs: add parent zobj_head to attributes

It will be necessary on "write control" patch

This allows to easily retrieve the ZIO object that owns a
given zio_attribute

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
header: move std attributes' enumeration to zio-user.h

make available enumeration of standard attributes also for userspace
applications

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
sysfs: rename and change prototype of obj_enable

It will be necessary on "write control" patch

In order to export the function to other ZIO core parts, this patch
rename the zobj_enable function with a proper name, and change the
prototype to use the zio object head instead of the kernel device.

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
sysfs: rename and export __get_spinlock

It will be necessary on "write control" patch

In order to export the function to other ZIO core parts, this patch
rename __get_spinlock() with a proper name and export the prototype
within the framework

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
cked-by: Alessandro Rubini <rubini@gnudd.com>
sysfs: split zattr_store()

It will be necessary on "write control" patch

Split the zattr_store() function in two parts. The configuration
function __zio_conf_set(), and the sysfs write access zattr_store. The
config function is exported in order to be used by others within the
framework

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
sysfs: internally export __zattr_propagate_value()

It will be necessary on "write control" patch

Now the __zattr_propagate_value() function can be used internally by ZIO
components

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Merge branch 'prepare_to_write_ctrl'