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

pull/3881/merge
Damien George 2018-06-28 13:25:10 +10:00
rodzic d800ed1877
commit ab02abe96d
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

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