diff options
Diffstat (limited to 'cpukit/libblock/include/rtems/blkdev.h')
-rw-r--r-- | cpukit/libblock/include/rtems/blkdev.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/libblock/include/rtems/blkdev.h b/cpukit/libblock/include/rtems/blkdev.h index e6424c6944..fac71522b6 100644 --- a/cpukit/libblock/include/rtems/blkdev.h +++ b/cpukit/libblock/include/rtems/blkdev.h @@ -1,4 +1,4 @@ -/* +/* * blkdev.h - block device driver interface definitions * * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia @@ -18,7 +18,7 @@ extern "C" { #endif /* Interface with device drivers - * Block device looks, initialized and behaves like traditional RTEMS device + * Block device looks, initialized and behaves like traditional RTEMS device * driver. Heart of the block device driver is in BIOREQUEST ioctl. This call * puts I/O request to the block device queue, in priority order, for * asynchronous processing. When driver executes request, req_done @@ -43,7 +43,7 @@ typedef enum blkdev_request_op { * errno - errno value to be passed to the user when * status != RTEMS_SUCCESSFUL */ -typedef void (* blkdev_request_cb)(void *arg, +typedef void (* blkdev_request_cb)(void *arg, rtems_status_code status, int error); @@ -56,19 +56,19 @@ typedef struct blkdev_sg_buffer { } blkdev_sg_buffer; /* blkdev_request (Block Device Request) structure is - * used to read/write a number of blocks from/to device. + * used to read/write a number of blocks from/to device. */ typedef struct blkdev_request { blkdev_request_op req; /* Block device operation (read or write) */ blkdev_request_cb req_done; /* Callback function */ void *done_arg; /* Argument to be passed to callback function*/ rtems_status_code status; /* Last I/O operation completion status */ - int error; /* If status != RTEMS_SUCCESSFUL, this field + int error; /* If status != RTEMS_SUCCESSFUL, this field * contains error code */ blkdev_bnum start; /* Start block number */ uint32_t count; /* Number of blocks to be exchanged */ - uint32_t bufnum; /* Number of buffers provided */ + uint32_t bufnum; /* Number of buffers provided */ blkdev_sg_buffer bufs[0];/* List of scatter/gather buffers */ } blkdev_request; @@ -80,8 +80,8 @@ typedef struct blkdev_request { #define BLKIO_SYNCDEV _IO('B', 4) /* Device driver interface conventions suppose that driver may - * contain initialize/open/close/read/write/ioctl entry points. These - * primitives (except initialize) can be implemented in generic fashion, + * contain initialize/open/close/read/write/ioctl entry points. These + * primitives (except initialize) can be implemented in generic fashion, * based upon supplied block device driver ioctl handler. Every block * device driver should provide initialize entry point, which is register * all block devices and appropriate ioctl handlers. @@ -104,8 +104,8 @@ rtems_blkdev_generic_read( ); /* blkdev_generic_write -- - * Generic block device driver write primitive. Implemented using block - * device buffer management primitives. + * Generic block device driver write primitive. Implemented using block + * device buffer management primitives. */ rtems_device_driver rtems_blkdev_generic_write( |