|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
#include <miniOS/types.h>

Go to the source code of this file.
Functions | |
| int | block_read (uint64_t lba, uint16_t count, void *buf) |
| Reads count blocks starting at lba into buf. If count is 1, this operation will be serviced by the cache. Multi-block reads currently bypass the cache and read directly from the disk. | |
| int | block_write (uint64_t lba, uint16_t count, const void *buf) |
| Writes count blocks starting at lba. This is a write-through operation. The data is written to the underlying disk, and if a cached copy of the block exists, it is updated. | |
| void | block_layer_init (void) |
| Called once during kernel startup to allocate memory for the cache and prepare the block layer for use. | |