summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems/ramdisk.h
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-20 07:53:19 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-20 07:53:19 +0000
commite41369ef8cf419e3e9f5c3816f05c383a5f076f5 (patch)
tree709ed1a6ded82913d94ce062d30198790c2a7454 /cpukit/libblock/include/rtems/ramdisk.h
parent2009-10-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e41369ef8cf419e3e9f5c3816f05c383a5f076f5.tar.bz2
* libblock/include/rtems/diskdevs.h: Documentation. Added field to
rtems_disk_device. * libblock/include/rtems/blkdev.h: New request code RTEMS_BLKIO_DELETED. * libblock/src/diskdevs.c: Major rewrite. Changed the way disks are deleted. Disks will be now deleted if they are not in use or upon last release. The IO control handler will be invoked if a physical disk is deleted with the RTEMS_BLKIO_DELETED request code. Logical disks increase now the usage count of the associated physical disk. * libblock/include/rtems/ramdisk.h: Documentation. * libblock/src/ramdisk-driver.c: Compile trace support conditionally.
Diffstat (limited to 'cpukit/libblock/include/rtems/ramdisk.h')
-rw-r--r--cpukit/libblock/include/rtems/ramdisk.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/libblock/include/rtems/ramdisk.h b/cpukit/libblock/include/rtems/ramdisk.h
index e1c6a17355..fc40816f54 100644
--- a/cpukit/libblock/include/rtems/ramdisk.h
+++ b/cpukit/libblock/include/rtems/ramdisk.h
@@ -75,8 +75,6 @@ extern rtems_ramdisk_config rtems_ramdisk_configuration [];
*/
extern size_t rtems_ramdisk_configuration_size;
-int ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp);
-
/**
* @brief RAM disk driver initialization entry point.
*/
@@ -142,6 +140,8 @@ typedef struct ramdisk {
extern const rtems_driver_address_table ramdisk_ops;
+int ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp);
+
/**
* @brief Allocates and initializes a RAM disk descriptor.
*
@@ -153,7 +153,13 @@ extern const rtems_driver_address_table ramdisk_ops;
* @return Pointer to allocated and initialized ramdisk structure, or @c NULL
* if no memory is available.
*
+ * @note
+ * Runtime configuration example:
* @code
+ * #include <rtems.h>
+ * #include <rtems/libio.h>
+ * #include <rtems/ramdisk.h>
+ *
* rtems_status_code create_ramdisk(
* const char *disk_name_path,
* uint32_t block_size,