summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/blkdev-imfs.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-10-31 13:56:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-02 09:40:58 +0100
commiteb93595b4ce63eea6e144d77a6bcbfb82225e73d (patch)
tree32da35ba7cfbe5715f9f1bf1ff78200343f370db /cpukit/libblock/src/blkdev-imfs.c
parentlibblock: Block device transfer request API change (diff)
downloadrtems-eb93595b4ce63eea6e144d77a6bcbfb82225e73d.tar.bz2
libblock: Documentation
Diffstat (limited to '')
-rw-r--r--cpukit/libblock/src/blkdev-imfs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/libblock/src/blkdev-imfs.c b/cpukit/libblock/src/blkdev-imfs.c
index e3c76a1d2f..290ae781ef 100644
--- a/cpukit/libblock/src/blkdev-imfs.c
+++ b/cpukit/libblock/src/blkdev-imfs.c
@@ -262,8 +262,8 @@ static const IMFS_node_control rtems_blkdev_imfs_control = {
rtems_status_code rtems_blkdev_create(
const char *device,
- uint32_t block_size,
- rtems_blkdev_bnum block_count,
+ uint32_t media_block_size,
+ rtems_blkdev_bnum media_block_count,
rtems_block_device_ioctl handler,
void *driver_data
)
@@ -274,8 +274,8 @@ rtems_status_code rtems_blkdev_create(
if (ctx != NULL) {
sc = rtems_disk_init_phys(
&ctx->dd,
- block_size,
- block_count,
+ media_block_size,
+ media_block_count,
handler,
driver_data
);
@@ -306,13 +306,13 @@ rtems_status_code rtems_blkdev_create(
rtems_status_code rtems_blkdev_create_partition(
const char *partition,
- const char *device,
- rtems_blkdev_bnum block_begin,
- rtems_blkdev_bnum block_count
+ const char *parent_block_device,
+ rtems_blkdev_bnum media_block_begin,
+ rtems_blkdev_bnum media_block_count
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
- int fd = open(device, O_RDWR);
+ int fd = open(parent_block_device, O_RDWR);
if (fd >= 0) {
int rv;
@@ -330,8 +330,8 @@ rtems_status_code rtems_blkdev_create_partition(
sc = rtems_disk_init_log(
&ctx->dd,
phys_dd,
- block_begin,
- block_count
+ media_block_begin,
+ media_block_count
);
if (sc == RTEMS_SUCCESSFUL) {