hvs_channel_writable_bytes
max_writable = hvs_channel_writable_bytes(chan);
return hvs_channel_writable_bytes(hvs->chan);