summaryrefslogtreecommitdiff
path: root/sys/src/9/port/devbridge.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-11-07 22:20:10 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-11-07 22:20:10 +0100
commita54d1cd95e19dc6685c1a6a5c22d6fdf6f0068eb (patch)
tree1139d07f225ad15ee602501373a976f716a766ff /sys/src/9/port/devbridge.c
parent23d217afb45b6b74c151a91f12695c553721c4f1 (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