Interface for pending requests that can be queued.
More...
#include <request_queue.h>
Inherited by Block_device::Virtio_client< DEV >::Generic_pending_request.
|
struct | Owner |
| Base class for object that can be owner of a pending request. More...
|
|
|
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.
|
|
Interface for pending requests that can be queued.
Definition at line 20 of file request_queue.h.
◆ 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_EOK | Request successfully issued. The callee has taken ownership of the request. |
-L4_EBUSY | Device 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
-
owner | Pointer 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: