summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems/ramdisk.h
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-29 12:47:04 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-29 12:47:04 +0000
commit982ca110ca0b13d4adc5a329705d1b8c3c7b4b96 (patch)
tree525dc5337b66741f46780a266d1fb1b9c1b4a23d /cpukit/libblock/include/rtems/ramdisk.h
parent2009-10-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-982ca110ca0b13d4adc5a329705d1b8c3c7b4b96.tar.bz2
Aded ramdisk_register().
Diffstat (limited to 'cpukit/libblock/include/rtems/ramdisk.h')
-rw-r--r--cpukit/libblock/include/rtems/ramdisk.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpukit/libblock/include/rtems/ramdisk.h b/cpukit/libblock/include/rtems/ramdisk.h
index fc40816f54..68c5887abe 100644
--- a/cpukit/libblock/include/rtems/ramdisk.h
+++ b/cpukit/libblock/include/rtems/ramdisk.h
@@ -213,6 +213,25 @@ ramdisk *ramdisk_allocate(
void ramdisk_free(ramdisk *rd);
+/**
+ * @brief Allocates, initializes and registers a RAM disk.
+ *
+ * The block size will be @a block_size. The block count will be @a
+ * block_count. The disk storage will be allocated. Sets the trace enable to
+ * @a trace. Registers a device node with disk name path @a disk. The
+ * registered device number will be returned in @a dev.
+ *
+ * @retval RTEMS_SUCCESSFUL Successful operation.
+ * @retval RTEMS_UNSATISFIED Something is wrong.
+ */
+rtems_status_code ramdisk_register(
+ uint32_t block_size,
+ rtems_blkdev_bnum block_count,
+ bool trace,
+ const char *disk,
+ dev_t *dev
+);
+
/** @} */
/** @} */