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

Interface for pending requests that can be queued. More...

#include <request_queue.h>

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

+ Collaboration diagram for Block_device::Pending_request:

Data Structures

struct  Owner
 Base class for object that can be owner of a pending request. More...
 

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.
 
virtual bool is_owner (Owner *owner)=0
 Check if somebody is owner of this request.
 

Detailed Description

Interface for pending requests that can be queued.

Definition at line 20 of file request_queue.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.

◆ is_owner()

virtual bool Block_device::Pending_request::is_owner ( Owner owner)
pure virtual

Check if somebody is owner of this request.

Parameters
ownerPointer to owner to check against.
Returns
True, if the given object owns the request.

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