L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
Block_device::Pending_request Struct Referenceabstract

Interface for pending requests. More...

#include <request.h>

Inherited by Block_device::Virtio_client< DEV >::Generic_pending_request.

+ Collaboration diagram for Block_device::Pending_request:

Public Member Functions

virtual int handle_request ()=0
 Callback used when the request is ready for processing.
 
virtual void fail_request ()=0
 Callback used when a request is dropped from the queue.
 

Detailed Description

Interface for pending requests.

Definition at line 15 of file request.h.

Member Function Documentation

◆ fail_request()

virtual void Block_device::Pending_request::fail_request ( )
pure virtual

Callback used when a request is dropped from the queue.

The function is called for notification only. The request will be destroyed.

◆ handle_request()

virtual int Block_device::Pending_request::handle_request ( )
pure virtual

Callback used when the request is ready for processing.

Return values
L4_EOKRequest successfully issued. The callee has taken ownership of the request.
-L4_EBUSYDevice is still busy. The callee must not requeue the request as it will remain in the queue.
<0 Other fatal error. The caller may dispose of the request.

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