Ignore:
Timestamp:
Oct 31, 2012, 12:56:15 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
7a1e92a1
Parents:
9f0a68c
git-author:
Sebastian Huber <sebastian.huber@…> (10/31/12 12:56:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/12 08:40:58)
Message:

libblock: Documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/blkdev-imfs.c

    r9f0a68c reb93595  
    263263rtems_status_code rtems_blkdev_create(
    264264  const char *device,
    265   uint32_t block_size,
    266   rtems_blkdev_bnum block_count,
     265  uint32_t media_block_size,
     266  rtems_blkdev_bnum media_block_count,
    267267  rtems_block_device_ioctl handler,
    268268  void *driver_data
     
    275275    sc = rtems_disk_init_phys(
    276276      &ctx->dd,
    277       block_size,
    278       block_count,
     277      media_block_size,
     278      media_block_count,
    279279      handler,
    280280      driver_data
     
    307307rtems_status_code rtems_blkdev_create_partition(
    308308  const char *partition,
    309   const char *device,
    310   rtems_blkdev_bnum block_begin,
    311   rtems_blkdev_bnum block_count
     309  const char *parent_block_device,
     310  rtems_blkdev_bnum media_block_begin,
     311  rtems_blkdev_bnum media_block_count
    312312)
    313313{
    314314  rtems_status_code sc = RTEMS_SUCCESSFUL;
    315   int fd = open(device, O_RDWR);
     315  int fd = open(parent_block_device, O_RDWR);
    316316
    317317  if (fd >= 0) {
     
    331331            &ctx->dd,
    332332            phys_dd,
    333             block_begin,
    334             block_count
     333            media_block_begin,
     334            media_block_count
    335335          );
    336336
Note: See TracChangeset for help on using the changeset viewer.