HomeFreeBSD

Make CTL frontends report kern_data_resid for under-/overruns.

Description

Make CTL frontends report kern_data_resid for under-/overruns.

It seems like kern_data_resid was never really implemented. This change
finally does it. Now frontends update this field while transferring data,
while CTL/backends getting it can more flexibly handle the result.
At this point behavior should not change significantly, still reporting
errors on write overrun, but that may be changed later, if we decide so.

CAM target frontend still does not properly handle overruns due to CAM API
limitations. We may need to add some fields to struct ccb_accept_tio to
pass information about initiator requested transfer size(s).

MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS312290: [gpioths] new driver for temperature/humidity sensor DHT11
Branches
Unknown
Tags
Unknown