summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-11-05 18:26:12 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-11-05 18:26:12 +0100
commitfa5bd7121846bae31ede5d6851a5091e9c16683a (patch)
treeb3a22709d938925a71535c98374f2b7ff0a28e12 /sys/lib
parent5c1feb0ef0b795e5de71e956f9ccddcd5c4b7f21 (diff)
devmnt: avoid memory copies of I/O rpc buffer by using bwrite()
given that devmnt will almost always write into a pipe or a network connection, which supports te bwrite routine, we can avoid the memory copy that would have been done by devbwrite(). this also means the i/o buffer for writes will get freed sooner without having to wait for the 9p rpc to get a response, saving memory. theres one case where we have to keep the rpc arround and that is when we write to a cached file, as we want to update the cache with the data that was written, but the user buffer cannot be trusted to stay the same during the rpc.
Diffstat (limited to 'sys/lib')
0 files changed, 0 insertions, 0 deletions