diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:20:10 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:20:10 +0100 |
commit | a54d1cd95e19dc6685c1a6a5c22d6fdf6f0068eb (patch) | |
tree | 1139d07f225ad15ee602501373a976f716a766ff /sys/src/9/port/devbridge.c | |
parent | 23d217afb45b6b74c151a91f12695c553721c4f1 (diff) |
kernel/qio: big cleanup of qio functions
remove bl2mem(), it is broken. a fault while copying to memory
yields a partially freed block list. it can be simply replaced
by readblist() and freeblist(), which we also use for qcopy()
now.
remove mem2bl(), and handle putting back remainer from a short
read internally (splitblock()) avoiding the releasing and re-
acquiering of the ilock.
always attempt to free blocks outside of the ilock.
have qaddlist() return the number of bytes enqueued, which
avoids walking the block list twice.
Diffstat (limited to 'sys/src/9/port/devbridge.c')
0 files changed, 0 insertions, 0 deletions