BeRTOS
Functions
kblock.c File Reference

KBlock interface. More...

#include "kblock.h"
#include <cfg/log.h>
#include <string.h>

Go to the source code of this file.

Functions

size_t kblock_read (struct KBlock *b, block_idx_t idx, void *buf, size_t offset, size_t size)
 Read data from the block device.
int kblock_flush (struct KBlock *b)
 Flush the cache (if any) to the device.
int kblock_trim (struct KBlock *b, block_idx_t start, block_idx_t count)
 Use a subset of the blocks on the device.
size_t kblock_write (struct KBlock *b, block_idx_t idx, const void *buf, size_t offset, size_t size)
 Write data to the block device.
int kblock_copy (struct KBlock *b, block_idx_t src, block_idx_t dest)
 Copy one block to another.

Detailed Description

KBlock interface.

Author:
Francesco Sacchi <batt@develer.com>

Definition in file kblock.c.