miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Toggle main menu visibility
Loading...
Searching...
No Matches
block_layer.h
Go to the documentation of this file.
1
#ifndef MINIOS_BLOCK_LAYER_H
2
#define MINIOS_BLOCK_LAYER_H
3
4
#include <
miniOS/types.h
>
5
15
28
int
block_read
(
uint64_t
lba,
uint16_t
count,
void
*buf);
29
42
int
block_write
(
uint64_t
lba,
uint16_t
count,
const
void
*buf);
43
49
void
block_layer_init
(
void
);
50
52
53
#endif
// MINIOS_BLOCK_LAYER_H
block_layer_init
void block_layer_init(void)
Called once during kernel startup to allocate memory for the cache and prepare the block layer for us...
Definition
block_layer.c:59
block_write
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 un...
Definition
block_layer.c:123
block_read
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 ca...
Definition
block_layer.c:78
types.h
uint16_t
unsigned short uint16_t
Definition
types.h:31
uint64_t
unsigned long int uint64_t
Definition
types.h:37
include
miniOS
drivers
block_layer.h
Generated by
1.18.0