L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
request.h
1/*
2 * Copyright (C) 2019-2020 Kernkonzept GmbH.
3 * Author(s): Sarah Hoffmann <sarah.hoffmann@kernkonzept.com>
4 *
5 * This file is distributed under the terms of the GNU General Public
6 * License, version 2. Please see the COPYING-GPL-2 file for details.
7 */
8#pragma once
9
10namespace Block_device {
11
16{
17 virtual ~Pending_request() = 0;
18
29 virtual int handle_request() = 0;
30
37 virtual void fail_request() = 0;
38};
39
40inline Pending_request::~Pending_request() = default;
41
42} // namespace
Interface for pending requests.
Definition request.h:16
virtual void fail_request()=0
Callback used when a request is dropped from the queue.
virtual int handle_request()=0
Callback used when the request is ready for processing.