- Feb 07, 2012
-
-
Alessandro Rubini authored
We don't have file_operations in the trigger since 5e3c6c8b , remove the related comment too (we forgot earlier). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Feb 02, 2012
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
We will have buffers that use the default operations (the majority) and buffers without file operations for in-kernel activities, like the input subsystem. In the latter case we want the cdev to refuse being openend, so NULL is reserved for that case. Also, add v_op to the buffer, so it can support mmap. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Feb 01, 2012
-
-
Federico Vaga authored
no existing trigger uses the file_operations, and the design evolved towards a pipeline, where there always is a buffer exchanging data with the trigger Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
The flag ZTI_STATUS is now called ZTI_BUSY and we get a spinlock when we change this flag Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Some buffers count size in blocks, and some in data space. I need this to size the vmalloc in zio-buf-vmalloc.c Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Jan 31, 2012
-
-
Alessandro Rubini authored
The argument is a relic of original design and was used incorrectly. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
Some of them don't apply any more (we made our choices, or the problem has been addressed and fixed elsewhere). Some do but I reworded them. Some still apply unchanged, and are not touched by this patch. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
Testing /dev/urandom versus zzero-0-1-data (the random device) shows this increases performance by 0.1 usecs per block. We are now just over 0.7 usecs per block on my development PC. This also introduces zio-core.c with generic stuff. We agree that zio-sys will become zio-sysfs over time. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com> Conflicts: Makefile
-
- Jan 30, 2012
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Jan 29, 2012
-
-
Alessandro Rubini authored
This changes the content of the control structure to use the new arrangement for attributes, shorter names and the added fields we proposed. This also changes the minor version number so user space cannot be confused (it will spit an error instead). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
Move the structures needed from user space to their own header. User space can now only include zio.h (for version and name lenghts and zio-user.h). Several files are changed to reflect the new order. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
I always had a hard time understanding ZIO_NAME_OBJ. Since it's only used internally, let it have "LEN" in it's own name. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Jan 24, 2012
-
-
Alessandro Rubini authored
The cset needs a spinlock for I/O operations. Locking the whole device seems overdue. The cset and channel need some private data, because they are allocated as arrays (while ti and bi don't need it, as container_of can be used). This adds a device-private pointer to both cset and channel, and a trigger-private pointer to the channel (this is used e.g. by the ldisc demultiplexer, to be committed later). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
A zio object can be enabled or disabled Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
The instance are created independently, so you can check if apply it or destroy it. Moreover, instances associated to cset and channel can be changed from sysfs Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
The zio_ctrl_attr structure will be used to store the current value of the zio attributes in use by device and trigger. This is used within zio_control to provide these informations to user space. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
When a trigger fire it is set to STATUS_ON until data_done(); so, one transfer at time is allowed. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Each zio object gets its own spinlock Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 05, 2012
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
index is the index within the vector of standard or extended attributes flags is used to specify attribute capabilities, currently if is extended or standard Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
zio_cset interface modified. You can define a channel template to apply to all new allocated channels. This replaces the sysfs attribute channel template which is not enough. Channel template includes also the sysfs attributes to apply on each channel Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Dec 11, 2011
-
-
Federico Vaga authored
Internal cleanup: no interface change. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
The new name is more approriate. No interface change Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
Use correct names for internal consistency. No interface change. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
This is a general change that affects triggers and buffers as well. It introduces incompatibilities but the old name was actually a bug. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Dec 06, 2011
-
-
Alessandro Rubini authored
This introduces ZIO_PARAM_TRIGGER(_name) and ZIO_PARAM_BUFFER(_name) and uses them in zio-zero. We'd love most software-driven devices to use the buffer= and trigger= parameters to override the default, thus the centralized macros. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Nov 26, 2011
-
-
Alessandro Rubini authored
The field was used by the output path, but now we have active_block, so output drivers should use that field instead. We may need a trigger-private field anyways, but by now we'd better find misuses. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
- Nov 22, 2011
-
-
Signed-off-by:
Manohar Vanga <manohar.vanga@cern.ch>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
This patch does the following: - it adds a new header for sysfs - it changes zio-sys.c to support per-instance trig/buf attributes - it renames some functions - is simplifies sysfs handling Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This changes some method and stuff, in order to make all input and output be cset-based. This solves a number of issues with the previous setup. Thus, even drivers must be made differentlym abd this fixes zio-zero accordingly. As a side effect, we have a data_done method in trigger ops, so the device can tell when it is done. And the fire_trigger returns void, since it cannot wait for stuff to be done. See documentation for details. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com> docs for general-cset
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
zio invokes try_module_get() on buffer, trigger and device owners when they are in use. For devices we still have a little unsafe time. Signed-off-by:
Federico Vaga <federico.vaga@gmail.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 15, 2011
-
-
Alessandro Rubini authored
A trigger instance has flags too, and the create functions set the flag in bot bi and ti. And channels inherit from cset. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
-