Skip to content
Commit 0fc9655e authored by Eric Van Hensbergen's avatar Eric Van Hensbergen
Browse files

9p: consolidate read/write functions



Currently there are two separate versions of read and write.  One for
dealing with user buffers and the other for dealing with kernel buffers.
There is a tremendous amount of code duplication in the otherwise
identical versions of these functions.  This patch adds an additional
user buffer parameter to read and write and conditionalizes handling of
the buffer on whether the kernel buffer or the user buffer is populated.

Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>


parent 95820a36
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