The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
block_device Struct Reference

block device abstraction for reading blocks from a storage device. More...

#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/drivers/disk/block_device.h>

Data Fields

uint16_t bytes_per_block
uint32_t total_blocks
void * context
BlockReadFn read_blocks
BlockWriteFn write_blocks
BlockFlushFn flush
BlockTrimFn trim

Detailed Description

block device abstraction for reading blocks from a storage device.

Field Documentation

◆ bytes_per_block

uint16_t block_device::bytes_per_block

◆ total_blocks

uint32_t block_device::total_blocks

◆ context

void* block_device::context

◆ read_blocks

BlockReadFn block_device::read_blocks

◆ write_blocks

BlockWriteFn block_device::write_blocks

◆ flush

BlockFlushFn block_device::flush

◆ trim

BlockTrimFn block_device::trim

The documentation for this struct was generated from the following file: