core: offer generic_fops, add v_op
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>
Showing
- buffers/zio-buf-kmalloc.c 1 addition, 14 deletionsbuffers/zio-buf-kmalloc.c
- include/linux/zio-buffer.h 10 additions, 15 deletionsinclude/linux/zio-buffer.h
- include/linux/zio.h 3 additions, 0 deletionsinclude/linux/zio.h
- zio-cdev.c 52 additions, 8 deletionszio-cdev.c
- zio-sys.c 8 additions, 1 deletionzio-sys.c
Please register or sign in to comment