Page MenuHomeFreeBSD

update SMB_BWRITE documentation, clarify SMB_BREAD
ClosedPublic

Authored by avg on Nov 3 2016, 8:47 AM.
Tags
None
Referenced Files
F146310886: D8431.id21966.diff
Sun, Mar 1, 3:26 PM
F146250033: D8431.id21966.diff
Sun, Mar 1, 2:59 AM
Unknown Object (File)
Sat, Feb 28, 1:11 PM
Unknown Object (File)
Fri, Feb 27, 1:55 AM
Unknown Object (File)
Wed, Feb 25, 9:33 AM
Unknown Object (File)
Sat, Feb 21, 6:22 PM
Unknown Object (File)
Dec 13 2025, 8:51 PM
Unknown Object (File)
Dec 8 2025, 7:45 PM
Subscribers

Details

Summary

After removal of SMB_TRANS some information in the description of SMB_BWRITE has become stale.
E.g., the maximum block size has been restored to 32.

Also, the descriptions of SMB_BREAD and SMB_BWRITE had some incorrect information on the SMBus protocol details.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avg retitled this revision from to update SMB_BWRITE documentation, clarify SMB_BREAD.
avg updated this object.
avg edited the test plan for this revision. (Show Details)
avg added reviewers: grembo, jhb, wblock.
avg edited edge metadata.
This revision was automatically updated to reflect the committed changes.
head/share/man/man4/smb.4
149
.Em BlockWrite
sends the
.Fa cmd
byte to the device, then the
.Fa wcount
byte, then that many bytes of data from the buffer pointed to by
.Fa wbuf .
159

Maybe a little smoother:

.Em BlockRead
sends the
.Fa cmd
byte to the device, reads the count of data bytes the device will provide,
then reads those data bytes.