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"
10
11namespace ublk {
12
22template <IoHandler F>
23inline 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
Implementation of the ublk I/O loop for processing I/O requests on a dedicated scheduler.
The main namespace of the ublk-cpp library.
Definition ublk.hpp:21
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 environment utils.