diff options
author | avg <avg@FreeBSD.org> | 2016-12-24 14:50:13 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2016-12-24 14:50:13 +0000 |
commit | 995ede07bde6326c2965be2e4fe39eccd394fa1a (patch) | |
tree | 28f33378ba6801cf5516645c2dc5cb9b6ac49ceb /share | |
parent | b806ce06cef062abf609d7943386cdcc19d35b6b (diff) | |
download | FreeBSD-src-995ede07bde6326c2965be2e4fe39eccd394fa1a.zip FreeBSD-src-995ede07bde6326c2965be2e4fe39eccd394fa1a.tar.gz |
MFC r308532: update SMB_BWRITE documentation, clarify SMB_BREAD
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/smb.4 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/share/man/man4/smb.4 b/share/man/man4/smb.4 index 82202a4..53e809d 100644 --- a/share/man/man4/smb.4 +++ b/share/man/man4/smb.4 @@ -141,26 +141,25 @@ in .Em BlockWrite first sends the byte from .Fa cmd -to the device, followed by +to the device, then the byte from +.Fa wcount +followed by .Fa wcount bytes of data that are taken from the buffer pointed to by .Fa wbuf . The SMBus specification mandates that no more than 32 bytes of -data can be transferred in a single block read or write command, -but since -.Xr smbus 4 -is also used to access I2C devices, the limit has been increased -to 1024. +data can be transferred in a single block read or write command. This value can be read from the constant .Dv SMB_MAXBLOCKSIZE . .It Dv SMB_BREAD Ta .Em BlockRead first sends the byte from .Fa cmd -to the device, then reads -.Fa rcount -bytes of data that from the device. -This data is returned in the buffer pointed to by +to the device, then reads a count of data bytes that the device +is going to provide and then reads that many bytes. +The count is returned in +.Fa rcount. +The data is returned in the buffer pointed to by .Fa rbuf . .El .Pp |