docs/uos: Make it clear that block device block_num param is an index.

This commit is contained in:
Damien George 2018-06-28 13:25:10 +10:00
parent d800ed1877
commit ab02abe96d
1 changed files with 6 additions and 4 deletions

View File

@ -193,14 +193,16 @@ used by a particular filesystem driver to store the data for its filesystem.
.. method:: readblocks(block_num, buf) .. method:: readblocks(block_num, buf)
Starting at *block_num*, read blocks from the device into *buf* (an array Starting at the block given by the index *block_num*, read blocks from
of bytes). The number of blocks to read is given by the length of *buf*, the device into *buf* (an array of bytes).
The number of blocks to read is given by the length of *buf*,
which will be a multiple of the block size. which will be a multiple of the block size.
.. method:: writeblocks(block_num, buf) .. method:: writeblocks(block_num, buf)
Starting at *block_num*, write blocks from *buf* (an array of bytes) to Starting at the block given by the index *block_num*, write blocks from
the device. The number of blocks to write is given by the length of *buf*, *buf* (an array of bytes) to the device.
The number of blocks to write is given by the length of *buf*,
which will be a multiple of the block size. which will be a multiple of the block size.
.. method:: ioctl(op, arg) .. method:: ioctl(op, arg)