Skip to content
Snippets Groups Projects
Commit 107c42f1 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

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: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
parent 0363a06b
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment