RTEMS  5.0.0
Data Fields
rtems_blkdev_request Struct Reference

The block device transfer request is used to read or write a number of blocks from or to the device. More...

#include <blkdev.h>

Data Fields

rtems_blkdev_request_op req
 
rtems_blkdev_request_cb done
 
void * done_arg
 
rtems_status_code status
 
uint32_t bufnum
 
rtems_id io_task
 
rtems_blkdev_sg_buffer bufs [RTEMS_ZERO_LENGTH_ARRAY]
 

Detailed Description

The block device transfer request is used to read or write a number of blocks from or to the device.

Transfer requests are issued to the disk device driver with the RTEMS_BLKIO_REQUEST IO control. The transfer request completion status must be signalled with rtems_blkdev_request_done(). This function must be called exactly once per request. The return value of the IO control will be ignored for transfer requests.

See also
rtems_blkdev_create().

Field Documentation

◆ bufnum

uint32_t rtems_blkdev_request::bufnum

Number of blocks for this request.

◆ bufs

rtems_blkdev_sg_buffer rtems_blkdev_request::bufs[RTEMS_ZERO_LENGTH_ARRAY]

List of scatter or gather buffers.

◆ done

rtems_blkdev_request_cb rtems_blkdev_request::done

Request done callback function.

◆ done_arg

void* rtems_blkdev_request::done_arg

Argument to be passed to callback function.

◆ io_task

rtems_id rtems_blkdev_request::io_task

The task requesting the IO operation.

◆ req

rtems_blkdev_request_op rtems_blkdev_request::req

Block device operation (read or write).

◆ status

rtems_status_code rtems_blkdev_request::status

Last IO operation completion status.


The documentation for this struct was generated from the following file: