RTEMS 6.3
Loading...
Searching...
No Matches
ramdisk.h File Reference

RAM Disk Block Device API. More...

#include <rtems.h>
#include <rtems/blkdev.h>

Go to the source code of this file.

Data Structures

struct  rtems_ramdisk_config
 RAM disk configuration table entry. More...
struct  ramdisk
 RAM disk descriptor. More...

Static Configuration

#define RAMDISK_DRIVER_TABLE_ENTRY
#define RAMDISK_DEVICE_BASE_NAME   "/dev/rd"
typedef struct rtems_ramdisk_config rtems_ramdisk_config
 RAM disk configuration table entry.
rtems_ramdisk_config rtems_ramdisk_configuration []
 External reference to the RAM disk configuration table describing each RAM disk in the system.
size_t rtems_ramdisk_configuration_size
 External reference the size of the RAM disk configuration table rtems_ramdisk_configuration.
rtems_device_driver ramdisk_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 RAM disk driver initialization entry point.

Runtime Configuration

typedef struct ramdisk ramdisk
 RAM disk descriptor.
int ramdisk_ioctl (rtems_disk_device *dd, uint32_t req, void *argp)
ramdisk * ramdisk_allocate (void *area_begin, uint32_t media_block_size, rtems_blkdev_bnum media_block_count, bool trace)
 Allocates and initializes a RAM disk descriptor.
void ramdisk_free (ramdisk *rd)
rtems_status_code ramdisk_register (uint32_t media_block_size, rtems_blkdev_bnum media_block_count, bool trace, const char *disk)
 Allocates, initializes and registers a RAM disk.

Detailed Description

RAM Disk Block Device API.