ublk-cpp
v0.0
Loading...
Searching...
No Matches
io.hpp
Go to the documentation of this file.
1
5
6
#pragma once
7
8
#include "
ublk/detail/io.hpp
"
9
#include "
ublk/detail/task.hpp
"
10
11
namespace
ublk
{
12
22
template
<IoHandler F>
23
inline
auto
run_dev
(
int
ublkc_fd, uint16_t q_id,
24
const
ublksrv_ctrl_dev_info *info, F &handler)
noexcept
{
25
return
detail::task_invoke(detail::io_run_dev_t{}, ublkc_fd, q_id, info,
26
&handler);
27
}
28
29
}
// namespace ublk
io.hpp
Implementation of the ublk I/O loop for processing I/O requests on a dedicated scheduler.
ublk
The main namespace of the ublk-cpp library.
Definition
ublk.hpp:21
ublk::run_dev
auto run_dev(int ublkc_fd, uint16_t q_id, const ublksrv_ctrl_dev_info *info, F &handler) noexcept
Run the I/O loop of a single ublk queue until it stops.
Definition
io.hpp:23
task.hpp
Task environment utils.
include
ublk
io.hpp
Generated by
1.15.0