|
Condy v1.7.0
C++ Asynchronous System Call Layer for Linux
|
Settings manager for io_uring. More...
#include <ring_settings.hpp>
Public Member Functions | |
| int | apply_iowq_aff (size_t cpusz, const cpu_set_t *mask) noexcept |
| Apply I/O worker queue affinity settings. | |
| int | remove_iowq_aff () noexcept |
| Remove I/O worker queue affinity settings. | |
| int | set_iowq_max_workers (unsigned int *values) noexcept |
| Set the maximum number of I/O workers. | |
| io_uring_probe * | get_probe () noexcept |
| Get the io_uring probe for the ring. | |
| uint32_t | get_features () const noexcept |
| Get the supported features of the ring. | |
| int | apply_napi (io_uring_napi *napi) noexcept |
| Apply NAPI settings to the io_uring instance. | |
| int | remove_napi (io_uring_napi *napi=nullptr) noexcept |
| Remove NAPI settings from the io_uring instance. | |
| int | set_clock (io_uring_clock_register *clock_reg) noexcept |
| Set the clock registration for the io_uring instance. | |
| int | set_rings_size (io_uring_params *params) noexcept |
| Resize the rings of the io_uring instance. | |
| int | set_iowait (bool enable_iowait) noexcept |
| Enable or disable iowait for the io_uring instance. | |
Settings manager for io_uring.
This class provides an interface to manage various runtime settings for an io_uring instance, including NAPI, clock, and other features.
Definition at line 162 of file ring_settings.hpp.
|
inlinenoexcept |
Apply I/O worker queue affinity settings.
See io_uring_register_iowq_aff for more details.
| cpusz | Number of CPUs in the affinity mask. |
| mask | Pointer to the CPU affinity mask. |
Definition at line 182 of file ring_settings.hpp.
|
inlinenoexcept |
Apply NAPI settings to the io_uring instance.
See io_uring_register_napi for more details.
| napi | Pointer to the io_uring_napi structure. |
Definition at line 228 of file ring_settings.hpp.
|
inlinenoexcept |
Get the supported features of the ring.
Definition at line 220 of file ring_settings.hpp.
|
inlinenoexcept |
Get the io_uring probe for the ring.
Definition at line 208 of file ring_settings.hpp.
|
inlinenoexcept |
Remove I/O worker queue affinity settings.
Definition at line 189 of file ring_settings.hpp.
|
inlinenoexcept |
Remove NAPI settings from the io_uring instance.
| napi | Pointer to the io_uring_napi structure. Can be nullptr. |
Definition at line 235 of file ring_settings.hpp.
|
inlinenoexcept |
Set the clock registration for the io_uring instance.
See io_uring_register_clock for more details.
| clock_reg | Pointer to the io_uring_clock_register structure. |
Definition at line 246 of file ring_settings.hpp.
|
inlinenoexcept |
Enable or disable iowait for the io_uring instance.
See io_uring_set_iowait for more details.
| enable_iowait | Boolean flag to enable or disable iowait mode. |
Definition at line 268 of file ring_settings.hpp.
|
inlinenoexcept |
Set the maximum number of I/O workers.
See io_uring_register_iowq_max_workers for more details.
| values | Pointer to an array with 2 elements representing the max_workers |
Definition at line 199 of file ring_settings.hpp.
|
inlinenoexcept |
Resize the rings of the io_uring instance.
See io_uring_resize_rings for more details.
| params | Pointer to the io_uring_params structure. |
Definition at line 257 of file ring_settings.hpp.