|
Condy v1.1.0
C++ Asynchronous System Call Layer for Linux
|
Settings manager for io_uring. More...
#include <ring.hpp>
Public Member Functions | |
| int | apply_personality () |
| Apply a personality to the io_uring instance. | |
| int | remove_personality (int id) |
| Remove a personality from the io_uring instance. | |
| int | set_restrictions (io_uring_restriction *res, unsigned int nr_res) |
| Set restrictions for the io_uring instance. | |
| int | apply_iowq_aff (size_t cpusz, const cpu_set_t *mask) |
| Apply I/O worker queue affinity settings. | |
| int | remove_iowq_aff () |
| Remove I/O worker queue affinity settings. | |
| int | set_iowq_max_workers (unsigned int *values) |
| Set the maximum number of I/O workers. | |
| io_uring_probe * | get_probe () |
| Get the io_uring probe for the ring. | |
| uint32_t | get_features () const |
| Get the supported features of the ring. | |
| int | apply_napi (io_uring_napi *napi) |
| Apply NAPI settings to the io_uring instance. | |
| int | remove_napi (io_uring_napi *napi=nullptr) |
| Remove NAPI settings from the io_uring instance. | |
| int | set_clock (io_uring_clock_register *clock_reg) |
| Set the clock registration for the io_uring instance. | |
| int | set_rings_size (io_uring_params *params) |
| Resize the rings of the io_uring instance. | |
| int | set_iowait (bool enable_iowait) |
| 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 personalities, restrictions, and other features.
|
inline |
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. |
|
inline |
Apply NAPI settings to the io_uring instance.
See io_uring_register_napi for more details.
| napi | Pointer to the io_uring_napi structure. |
|
inline |
Apply a personality to the io_uring instance.
See io_uring_register_personality for more details.
|
inline |
Get the supported features of the ring.
|
inline |
Get the io_uring probe for the ring.
|
inline |
Remove I/O worker queue affinity settings.
|
inline |
Remove NAPI settings from the io_uring instance.
| napi | Pointer to the io_uring_napi structure. Can be nullptr. |
|
inline |
Remove a personality from the io_uring instance.
| id | The ID of the personality to remove. |
|
inline |
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. |
|
inline |
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. |
|
inline |
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 |
|
inline |
Set restrictions for the io_uring instance.
See io_uring_register_restrictions for more details.
| res | Pointer to an array of restrictions. |
| nr_res | Number of restrictions in the array. |
|
inline |
Resize the rings of the io_uring instance.
See io_uring_resize_rings for more details.
| params | Pointer to the io_uring_params structure. |