|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|

Functions | |
| void | blkdev_init (void) |
| int | blkdev_register (const char *name, uint8_t major, uint8_t minor, uint64_t lba_start, uint64_t lba_end, bool is_partition) |
| const block_device_t * | blkdev_find (uint8_t major, uint8_t minor) |
| const block_device_t * | blkdev_get (int index) |
| int | blkdev_count (void) |
Variables | |
| static block_device_t | g_devices [BLKDEV_MAX] |
| static int | g_count |
| int blkdev_count | ( | void | ) |
blkdev_count() - Return the number of registered block devices.
| const block_device_t * blkdev_find | ( | uint8_t | major, |
| uint8_t | minor ) |
blkdev_find() - Look up a block device by major and minor number. @major: Device major number. @minor: Device minor number.

| const block_device_t * blkdev_get | ( | int | index | ) |
blkdev_get() - Get a block device by index. @index: Zero-based index into the registry.
| void blkdev_init | ( | void | ) |
blkdev_init() - Clear the block device registry. Called once during kernel startup before any blkdev_register() calls.


| int blkdev_register | ( | const char * | name, |
| uint8_t | major, | ||
| uint8_t | minor, | ||
| uint64_t | lba_start, | ||
| uint64_t | lba_end, | ||
| bool | is_partition ) |


|
static |
|
static |