summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems/bdbuf.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-06-12 09:46:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-06-12 10:12:40 +0200
commit9f527308d7248d1ec1d63f0911757bb5faa7ea10 (patch)
tree27943302132f4b86a1ea3c6089407b45d23c66cb /cpukit/libblock/include/rtems/bdbuf.h
parentlibblock: Remove const qualifier (diff)
downloadrtems-9f527308d7248d1ec1d63f0911757bb5faa7ea10.tar.bz2
libblock: Add block device statistics
Diffstat (limited to 'cpukit/libblock/include/rtems/bdbuf.h')
-rw-r--r--cpukit/libblock/include/rtems/bdbuf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h
index f63c1c548c..6c6eb76a42 100644
--- a/cpukit/libblock/include/rtems/bdbuf.h
+++ b/cpukit/libblock/include/rtems/bdbuf.h
@@ -662,6 +662,19 @@ rtems_bdbuf_purge_dev (rtems_disk_device *dd);
rtems_status_code
rtems_bdbuf_set_block_size (rtems_disk_device *dd, uint32_t block_size);
+/**
+ * @brief Returns the block device statistics.
+ */
+void
+rtems_bdbuf_get_device_stats (const rtems_disk_device *dd,
+ rtems_blkdev_stats *stats);
+
+/**
+ * @brief Resets the block device statistics.
+ */
+void
+rtems_bdbuf_reset_device_stats (rtems_disk_device *dd);
+
/** @} */
#ifdef __cplusplus