summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-30 12:43:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-31 11:05:48 +0200
commit40284de8443df5e8f60420c11d2dcac09b6befb1 (patch)
tree0df3c57102c41b5dcf3b71144c73f4ef0b750e5f /cpukit/libblock/include/rtems
parentlibblock: Add task stack size bdbuf configuration (diff)
downloadrtems-40284de8443df5e8f60420c11d2dcac09b6befb1.tar.bz2
libblock: Remove const qualifier from bdbuf API
This allows addtion of per disk statistics for example.
Diffstat (limited to 'cpukit/libblock/include/rtems')
-rw-r--r--cpukit/libblock/include/rtems/bdbuf.h8
-rw-r--r--cpukit/libblock/include/rtems/bdpart.h2
-rw-r--r--cpukit/libblock/include/rtems/blkdev.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h
index ead40206d1..c065f4ec55 100644
--- a/cpukit/libblock/include/rtems/bdbuf.h
+++ b/cpukit/libblock/include/rtems/bdbuf.h
@@ -490,7 +490,7 @@ rtems_bdbuf_init (void);
*/
rtems_status_code
rtems_bdbuf_get (
- const rtems_disk_device *dd,
+ rtems_disk_device *dd,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer** bd
);
@@ -524,7 +524,7 @@ rtems_bdbuf_get (
*/
rtems_status_code
rtems_bdbuf_read (
- const rtems_disk_device *dd,
+ rtems_disk_device *dd,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer** bd
);
@@ -616,7 +616,7 @@ rtems_bdbuf_sync (rtems_bdbuf_buffer* bd);
* @retval RTEMS_SUCCESSFUL Successful operation.
*/
rtems_status_code
-rtems_bdbuf_syncdev (const rtems_disk_device *dd);
+rtems_bdbuf_syncdev (rtems_disk_device *dd);
/**
* @brief Purges all buffers corresponding to the disk device @a dd.
@@ -630,7 +630,7 @@ rtems_bdbuf_syncdev (const rtems_disk_device *dd);
* @param dd [in] The disk device.
*/
void
-rtems_bdbuf_purge_dev (const rtems_disk_device *dd);
+rtems_bdbuf_purge_dev (rtems_disk_device *dd);
/**
* @brief Sets the block size of a disk device.
diff --git a/cpukit/libblock/include/rtems/bdpart.h b/cpukit/libblock/include/rtems/bdpart.h
index 873b9d31f6..d1d81e733b 100644
--- a/cpukit/libblock/include/rtems/bdpart.h
+++ b/cpukit/libblock/include/rtems/bdpart.h
@@ -400,7 +400,7 @@ static inline uint8_t rtems_bdpart_mbr_partition_type(
rtems_status_code rtems_bdpart_get_disk_data(
const char *disk_name,
int *fd_ptr,
- const rtems_disk_device **dd_ptr,
+ rtems_disk_device **dd_ptr,
rtems_blkdev_bnum *disk_end
);
diff --git a/cpukit/libblock/include/rtems/blkdev.h b/cpukit/libblock/include/rtems/blkdev.h
index 4df881bed3..7c2787204a 100644
--- a/cpukit/libblock/include/rtems/blkdev.h
+++ b/cpukit/libblock/include/rtems/blkdev.h
@@ -192,7 +192,7 @@ static inline int rtems_disk_fd_get_block_count(
static inline int rtems_disk_fd_get_disk_device(
int fd,
- const rtems_disk_device **dd_ptr
+ rtems_disk_device **dd_ptr
)
{
return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);