std1.0.0-beta-7 SafeC docs

Module fs::block

#include <std/fs/block.h> source

Block Device Abstraction Freestanding-safe virtual block device interface.

Structs

BlockDevice

Traits

BlockDriverWhat a block driver provides: whole-sector reads and writes at a sector address, 0 on success. A buffer covers buf.len / sector_size sectors (the device's sector_size), and its length is a multiple of it. BlockDevice::new takes any such type, and a BlockDevice has the same methods, so it is one too.

Macros

BLOCK_SIZEbytes per sector (standard)