block: clarify parameter name

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-12 15:58:04 -04:00
commit 334bff74bc
3 changed files with 10 additions and 10 deletions

View file

@ -26,14 +26,14 @@ static ssize_t i_write_chr(inode_t *inode, char *buf, size_t size, size_t offset
return size;
}
static ssize_t i_read_blk(inode_t *inode, char *buf, size_t size, size_t offset)
static ssize_t i_read_blk(inode_t *inode, char *buf, size_t n_blocks, size_t offset)
{
return block_read(inode->data, buf, offset, size);
return block_read(inode->data, buf, offset, n_blocks);
}
static ssize_t i_write_blk(inode_t *inode, char *buf, size_t size, size_t offset)
static ssize_t i_write_blk(inode_t *inode, char *buf, size_t n_blocks, size_t offset)
{
return block_write(inode->data, buf, offset, size);
return block_write(inode->data, buf, offset, n_blocks);
}
static int devfs_insert_device(const char *name, u64 mode, dirent_t **out)