Operations a block driver provides; every one is required.
More...
#include <homecore/drivers/block.h>
|
|
int(* | read )(void *device, uint32_t sector, void *buf, uint32_t count) |
| | Read count sectors starting at sector into buf.
|
| |
|
int(* | write )(void *device, uint32_t sector, const void *buf, uint32_t count) |
| | Write count sectors starting at sector from buf.
|
| |
|
int(* | sync )(void *device) |
| | Finish every pending write.
|
| |
|
uint32_t(* | sector_count )(void *device) |
| | Return the device size in sectors.
|
| |
Operations a block driver provides; every one is required.
The documentation for this struct was generated from the following file: