Changeset 4670d91 in rtems for cpukit/libblock


Ignore:
Timestamp:
05/15/09 12:52:12 (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
4a6d160
Parents:
3b7e9bc
Message:

2009-05-15 Sebastian Huber <sebastian.huber@…>

  • Doxygen.in: Fixed project name. Added project number. Enabled auto brief. Disabled include graphs.
  • include/rtems/irq-extension.h, libblock/include/rtems/bdpart.h, libblock/include/rtems/bdbuf.h, libblock/include/rtems/bdpart.h, libblock/include/rtems/blkdev.h, libblock/include/rtems/diskdevs.h, libblock/include/rtems/ramdisk.h, libblock/src/bdbuf.c, libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/ramdisk.c: Documentation.
  • libblock/src/bdpart.c: Documentation. Fixed NULL pointer access.
Location:
cpukit/libblock
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/include/rtems/bdbuf.h

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_bdbuf
    35 *
    46 * Block device buffer management.
  • cpukit/libblock/include/rtems/bdpart.h

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_bdpart
    35 *
    46 * Block device partition management.
     
    246248 * physical disk device with name @a disk_name.
    247249 *
    248  * The array of positive integer weights in @a distribution must be of size @a
    249  * size.  The weights in the distribution array are summed up.  Each weight is
    250  * then divided by the sum to obtain the disk fraction which forms the
    251  * corresponding partition.  The partition boundaries are generated with
    252  * respect to the output format in @a format.
     250 * The array of positive integer weights in @a distribution must have exactly
     251 * @a count elements.  The weights in the distribution array are summed up.
     252 * Each weight is then divided by the sum to obtain the disk fraction which
     253 * forms the corresponding partition.  The partition boundaries are generated
     254 * with respect to the output format in @a format.
    253255 */
    254256rtems_status_code rtems_bdpart_create(
  • cpukit/libblock/include/rtems/blkdev.h

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_blkdev
    35 *
    46 * Block device management.
  • cpukit/libblock/include/rtems/diskdevs.h

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_disk
    35 *
    46 * Block device disk management.
  • cpukit/libblock/include/rtems/ramdisk.h

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_ramdisk
    35 *
    46 * RAM disk block device.
  • cpukit/libblock/src/bdbuf.c

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_bdbuf
    35 *
    46 * Block device buffer management.
  • cpukit/libblock/src/bdpart.c

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_bdpart
    35 *
    46 * Block device partition management.
     
    320322  rtems_bdbuf_buffer *block = NULL;
    321323  rtems_bdpart_partition *p = pt - 1;
    322   rtems_bdpart_partition *p_end = NULL;
     324  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
    323325  rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
    324326  rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
     
    333335  }
    334336
    335   /* Set table end and the count to a save value */
    336   p_end = pt + *count;
     337  /* Set count to a save value */
    337338  *count = 0;
    338339
     
    464465  rtems_status_code sc = RTEMS_SUCCESSFUL;
    465466  rtems_status_code esc = RTEMS_SUCCESSFUL;
    466   bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR
     467  bool dos_compatibility = format != NULL
     468    && format->type == RTEMS_BDPART_FORMAT_MBR
    467469    && format->mbr.dos_compatibility;
    468470  rtems_bdbuf_buffer *block = NULL;
     
    681683{
    682684  rtems_status_code sc = RTEMS_SUCCESSFUL;
    683   bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR
     685  bool dos_compatibility = format != NULL
     686    && format->type == RTEMS_BDPART_FORMAT_MBR
    684687    && format->mbr.dos_compatibility;
    685688  rtems_blkdev_bnum disk_end = 0;
  • cpukit/libblock/src/blkdev.c

    r3b7e9bc r4670d91  
    22 * @file
    33 *
     4 * @ingroup rtems_blkdev
     5 *
    46 * Block device management.
    57 */
    68 
    79/*
    8  * blkdev.h - block device driver generic support
    9  *
    1010 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
    1111 * Author: Victor V. Vengerov <vvv@oktet.ru>
  • cpukit/libblock/src/diskdevs.c

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_disk
    35 *
    46 * Block device disk management.
     
    68 
    79/*
    8  * diskdevs.c - Physical and logical block devices (disks) support
    9  *
    1010 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
    1111 * Author: Victor V. Vengerov <vvv@oktet.ru>
  • cpukit/libblock/src/ramdisk.c

    r3b7e9bc r4670d91  
    11/**
    22 * @file
     3 *
     4 * @ingroup rtems_ramdisk
    35 *
    46 * RAM disk block device.
Note: See TracChangeset for help on using the changeset viewer.