diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2010-01-19 09:10:03 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2010-01-19 09:10:03 +0000 |
commit | 5c587596f09da0c52528bcb6a0c3726fcd2cfb07 (patch) | |
tree | f3cf6cc9b9cea5f8313e673dc6e8f17b1f928c02 /cpukit/libblock/include/rtems/blkdev.h | |
parent | updates and new test cases (diff) | |
download | rtems-5c587596f09da0c52528bcb6a0c3726fcd2cfb07.tar.bz2 |
libblock API update
Diffstat (limited to 'cpukit/libblock/include/rtems/blkdev.h')
-rw-r--r-- | cpukit/libblock/include/rtems/blkdev.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/cpukit/libblock/include/rtems/blkdev.h b/cpukit/libblock/include/rtems/blkdev.h index eb53700f40..63fb2db108 100644 --- a/cpukit/libblock/include/rtems/blkdev.h +++ b/cpukit/libblock/include/rtems/blkdev.h @@ -59,16 +59,17 @@ typedef enum rtems_blkdev_request_op { #define RTEMS_BLKDEV_CAP_MULTISECTOR_CONT (1 << 0) /** - * Type for block device request done callback function. + * @brief Block device request done callback function type. * - * @param arg Argument supplied in @ref rtems_blkdev_request. - * @param status Status code for this operation. - * @param errno The @c errno value to be passed to the user when status is not - * equal to @c RTEMS_SUCCESSFUL. + * The first parameter @a arg must be the argument provided by the block device + * request structure @ref rtems_blkdev_request. + * + * The second parameter @a status should contain the status of the operation: + * - @c RTEMS_SUCCESSFUL Operation was successful. + * - @c RTEMS_IO_ERROR Some sort of input or output error. + * - @c RTEMS_UNSATISFIED Media no more present. */ -typedef void (* rtems_blkdev_request_cb)(void *arg, - rtems_status_code status, - int error); +typedef void (*rtems_blkdev_request_cb)(void *arg, rtems_status_code status); /** * Block device scatter or gather buffer structure. @@ -128,12 +129,6 @@ typedef struct rtems_blkdev_request { rtems_status_code status; /** - * If @c status is not equal to @c RTEMS_SUCCESSFUL, this field contains the - * error number. - */ - int error; - - /** * Number of blocks for this request. */ uint32_t bufnum; |