RTEMS
5.1
|
This module provides functions to manage disk devices. More...
Files | |
file | diskdevs.h |
Block Device Disk Management API. | |
file | diskdevs-init.c |
Block Device Disk Management Initialize. | |
file | diskdevs.c |
Block device disk management implementation. | |
Data Structures | |
struct | rtems_blkdev_read_ahead |
Block device read-ahead control. More... | |
struct | rtems_blkdev_stats |
Block device statistics. More... | |
struct | rtems_disk_device |
Description of a disk device (logical and physical disks). More... | |
Macros | |
#define | RTEMS_DISK_READ_AHEAD_NO_TRIGGER ((rtems_blkdev_bnum) -1) |
Trigger value to disable further read-ahead requests. | |
Typedefs | |
typedef uint32_t | rtems_blkdev_bnum |
Block device block index type. | |
typedef int(* | rtems_block_device_ioctl) (rtems_disk_device *dd, uint32_t req, void *argp) |
Block device IO control handler type. | |
Disk Device Maintainance | |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_create_phys (dev_t dev, uint32_t block_size, rtems_blkdev_bnum block_count, rtems_block_device_ioctl handler, void *driver_data, const char *name) |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_create_log (dev_t dev, dev_t phys, rtems_blkdev_bnum block_begin, rtems_blkdev_bnum block_count, const char *name) |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_delete (dev_t dev) |
RTEMS_DEPRECATED rtems_disk_device * | rtems_disk_obtain (dev_t dev) |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_release (rtems_disk_device *dd) |
Disk Management | |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_io_initialize (void) |
RTEMS_DEPRECATED rtems_status_code | rtems_disk_io_done (void) |
This module provides functions to manage disk devices.
A disk is a set of blocks which are identified by a consecutive set of non-negative integers starting at zero. There are also logical disks which contain a subset of consecutive disk blocks. The logical disks are used to represent the partitions of a disk. The disk devices are accessed via the block device buffer module.