25#ifndef __KOS_BLOCKDEV_H
26#define __KOS_BLOCKDEV_H
54typedef struct kos_blockdev {
67 int (*init)(
struct kos_blockdev *d);
92 int (*read_blocks)(
struct kos_blockdev *d, uint64_t block,
size_t count,
107 int (*write_blocks)(
struct kos_blockdev *d, uint64_t block,
size_t count,
119 uint64_t (*count_blocks)(
struct kos_blockdev *d);
131 int (*flush)(
struct kos_blockdev *d);
Various common macros used throughout the codebase.
int shutdown(int socket, int how)
Shutdown socket send and receive operations.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
A simple block device.
Definition blockdev.h:54
void * dev_data
Internal device data.
Definition blockdev.h:55
uint32_t l_block_size
Log base 2 of the bytes per block.
Definition blockdev.h:56