L4Re - L4 Runtime Environment
L4 VIRTIO Block Device
+ Collaboration diagram for L4 VIRTIO Block Device:

Data Structures

struct  l4virtio_block_header_t
 Header structure of a request for a block device. More...
 
struct  l4virtio_block_config_t
 Device configuration for block devices. More...
 

Typedefs

typedef struct l4virtio_block_header_t l4virtio_block_header_t
 Header structure of a request for a block device.
 
typedef struct l4virtio_block_config_t l4virtio_block_config_t
 Device configuration for block devices.
 

Enumerations

enum  L4virtio_block_operations { L4VIRTIO_BLOCK_T_IN = 0, L4VIRTIO_BLOCK_T_OUT = 1, L4VIRTIO_BLOCK_T_FLUSH = 4, L4VIRTIO_BLOCK_T_GET_ID = 8 }
 Kinds of operation over a block device. More...
 
enum  L4virtio_block_status { L4VIRTIO_BLOCK_S_OK = 0, L4VIRTIO_BLOCK_S_IOERR = 1, L4VIRTIO_BLOCK_S_UNSUPP = 2 }
 Status of a finished block request. More...
 

Detailed Description

Enumeration Type Documentation

◆ L4virtio_block_operations

Kinds of operation over a block device.

Enumerator
L4VIRTIO_BLOCK_T_IN 

Read from device.

L4VIRTIO_BLOCK_T_OUT 

Write to device.

L4VIRTIO_BLOCK_T_FLUSH 

Flush data to disk.

L4VIRTIO_BLOCK_T_GET_ID 

Get device ID.

Definition at line 31 of file virtio_block.h.

◆ L4virtio_block_status

Status of a finished block request.

Enumerator
L4VIRTIO_BLOCK_S_OK 

Request finished successfully.

L4VIRTIO_BLOCK_S_IOERR 

IO error on device.

L4VIRTIO_BLOCK_S_UNSUPP 

Operation is not supported.

Definition at line 42 of file virtio_block.h.