• Eric Van Hensbergen's avatar
    9p: consolidate read/write functions · 0fc9655e
    Eric Van Hensbergen authored
    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>
    
    
    
    0fc9655e
client.h 6.97 KB