next up previous contents index
Next: 5.3.2 read: Read from Up: 5.3 oskit_blkio: Block I/O Previous: 5.3 oskit_blkio: Block I/O

5.3.1 getblocksize: Return the minimum block size of this block I/O object

 

SYNOPSIS

#include <oskit/io/blkio.h>

OSKIT_COMDECL_U oskit_blkio_getblocksize(oskit_blkio_t *f);

DESCRIPTION

This method simply returns the block size of the object, which must be a power of two. Calls by the client to read from or write to the object must only use offsets and sizes that are evenly divisible by this block size.

PARAMETERS

f
The block I/O object.

RETURNS

Returns the block size of the object.



University of Utah Flux Research Group