ublk-cpp v0.1
A ublk library for std::execution.
Loading...
Searching...
No Matches
control.hpp File Reference

Public API for ublk control command. More...

Go to the source code of this file.

Namespaces

namespace  ublk
 The main namespace of the ublk-cpp library.

Functions

auto ublk::get_queue_affinity (int control_fd, uint32_t dev_id, uint16_t q_id, cpu_set_t *cpuset) noexcept
 Get the queue affinity for a specific ublk queue.
auto ublk::get_dev_info (int control_fd, uint32_t dev_id, ublksrv_ctrl_dev_info *info) noexcept
 Get the device information for a specific ublk device.
auto ublk::add_dev (int control_fd, ublksrv_ctrl_dev_info *info) noexcept
 Add a new ublk device.
auto ublk::del_dev (int control_fd, uint32_t dev_id) noexcept
 Delete a ublk device.
auto ublk::start_dev (int control_fd, uint32_t dev_id, int32_t daemon_pid) noexcept
 Start a ublk device.
auto ublk::stop_dev (int control_fd, uint32_t dev_id) noexcept
 Stop a ublk device.
auto ublk::set_params (int control_fd, uint32_t dev_id, const ublk_params *params) noexcept
 Set the parameters of a ublk device.
auto ublk::get_params (int control_fd, uint32_t dev_id, ublk_params *params) noexcept
 Get the parameters of a ublk device.
auto ublk::start_user_recovery (int control_fd, uint32_t dev_id) noexcept
 Start user recovery for a ublk device.
auto ublk::end_user_recovery (int control_fd, uint32_t dev_id, int32_t daemon_pid) noexcept
 End user recovery for a ublk device.
auto ublk::get_features (int control_fd, uint64_t *features) noexcept
 Get the feature flags supported by the ublk driver.
auto ublk::del_dev_async (int control_fd, uint32_t dev_id) noexcept
 Delete a ublk device asynchronously.
auto ublk::update_size (int control_fd, uint32_t dev_id, uint64_t sectors) noexcept
 Update the size of a ublk device.
auto ublk::quiesce_dev (int control_fd, uint32_t dev_id, uint64_t timeout_ms) noexcept
 Quiesce a ublk device (UBLK_F_QUIESCE).
auto ublk::try_stop_dev (int control_fd, uint32_t dev_id) noexcept
 Try to stop a ublk device if it has no openers (UBLK_F_SAFE_STOP_DEV).
auto ublk::register_shm_buf (int control_fd, uint32_t dev_id, const ublk_shmem_buf_reg *reg) noexcept
 Register a shared memory buffer for zero-copy I/O on a ublk device (UBLK_F_SHMEM_ZC).
auto ublk::unregister_shm_buf (int control_fd, uint32_t dev_id, uint64_t buf_index) noexcept
 Unregister a shared memory buffer from a ublk device.

Detailed Description

Public API for ublk control command.

Definition in file control.hpp.