18#ifndef __FENNIX_API_BLOCK_H__
19#define __FENNIX_API_BLOCK_H__
23#if __has_include(<interface/fs.h>)
const InodeOperations * Ops
Pointer to the block device operations structure.
uint32_t BlockSize
Size of a single block in bytes.
dev_t RegisterBlockDevice(struct BlockDevice *Device)
Registers a block device with the kernel block subsystem.
size_t BlockCount
Number of blocks in the device.
size_t Size
Total size of the device in bytes.
void * PrivateData
Opaque pointer to driver-specific or hardware-specific data.
int UnregisterBlockDevice(dev_t DeviceID)
Unregisters a block device from the kernel block subsystem.
const char * Name
Base name of the device.