![]()  | 
  
    L4Re Operating System Framework
    
   Interface and Usage Documentation 
   | 
 
A request to read or write data. More...
#include <virtio-block>
Public Member Functions | |
| unsigned | data_size () const | 
| Compute the total size of the data in the request.   | |
| bool | has_more () | 
| Check if the request contains more data blocks.  | |
| Data_block | next_block () | 
| Return next block in scatter-gather list.   | |
| l4virtio_block_header_t const & | header () const | 
| Return the block request header.  | |
A request to read or write data.
Definition at line 28 of file virtio-block.
      
  | 
  inline | 
Compute the total size of the data in the request.
| Size | in bytes or 0 if there was an error. | 
| L4::Runtime_error(-L4_EIO) | Request has a bad format. | 
Note that this operation is relatively expensive as it has to iterate over the complete list of blocks.
Definition at line 63 of file virtio-block.
References L4virtio::Svr::Request_processor::has_more(), L4_EIO, L4virtio::Svr::Request_processor::next(), and L4virtio::Svr::Request_processor::start().
      
  | 
  inline | 
Return next block in scatter-gather list.
| L4::Runtime_error | No more data block is available. | 
| Bad_descriptor | Virtio request is corrupted. | 
Definition at line 113 of file virtio-block.
References L4virtio::Svr::Bad_descriptor::Bad_size, and L4_EEXIST.