Data Structures | |
struct | l4blk_sg_phys_elem |
struct | l4blk_sg_ds_elem |
struct | l4blk_blk_request |
struct | l4blk_request |
Defines | |
#define | L4BLK_REQUEST_READ 0x00000001 |
#define | L4BLK_REQUEST_WRITE 0x00000002 |
#define | L4BLK_REQUEST_METADATA 0x00000001 |
#define | L4BLK_UNPROCESSED 0x00000000 |
#define | L4BLK_DONE 0x00000001 |
#define | L4BLK_ERROR 0x00000002 |
#define | L4BLK_SKIPPED 0x00000003 |
Typedefs | |
typedef struct l4blk_request | l4blk_request_t |
typedef L4_CV void(* | l4blk_callback_fn_t )(l4blk_request_t *request, int status, int error) |
typedef struct l4blk_sg_phys_elem | l4blk_sg_phys_elem_t |
typedef struct l4blk_sg_ds_elem | l4blk_sg_ds_elem_t |
typedef struct l4blk_blk_request | l4blk_blk_request_t |
Functions | |
L4_CV int | l4blk_do_request (l4blk_request_t *request) |
Execute request (synchronously). | |
L4_CV int | l4blk_put_request (l4blk_request_t *request) |
Send request to driver. | |
L4_CV int | l4blk_get_status (l4blk_request_t *request) |
Check status of a request. | |
L4_CV int | l4blk_get_error (l4blk_request_t *request) |
Return driver error code. |
typedef struct l4blk_request l4blk_request_t |
typedef L4_CV void(* l4blk_callback_fn_t)(l4blk_request_t *request, int status, int error) |
typedef struct l4blk_sg_phys_elem l4blk_sg_phys_elem_t |
Scatter-gather list element (phys. buffer address)
typedef struct l4blk_sg_ds_elem l4blk_sg_ds_elem_t |
Scatter-gather list element (dataspace region)
typedef struct l4blk_blk_request l4blk_blk_request_t |
Server request structure, it contains all information which are transfered to a block device server
L4_CV int l4blk_do_request | ( | l4blk_request_t * | request | ) |
Execute request (synchronously).
request | Request structure |
L4_CV int l4blk_put_request | ( | l4blk_request_t * | request | ) |
Send request to driver.
request | Request structure, it describes the block request |
L4_CV int l4blk_get_status | ( | l4blk_request_t * | request | ) |
Check status of a request.
request | Request structure |
L4_CV int l4blk_get_error | ( | l4blk_request_t * | request | ) |
Return driver error code.
request | Request structure |