|
Condy v1.7.0
C++ Asynchronous System Call Layer for Linux
|
File descriptor table for io_uring. More...
#include <ring_settings.hpp>
Public Member Functions | |
| int | init (size_t capacity) noexcept |
| Initialize the file descriptor table with the given capacity. | |
| int | init (const int *fds, unsigned nr_fds) |
| Initialize the file descriptor table with the given array of file descriptors. | |
| int | destroy () noexcept |
| Destroy the file descriptor table. | |
| int | update (unsigned index_base, const int *fds, unsigned nr_fds) noexcept |
| Update the file descriptor table starting from the given index. | |
| int | set_file_alloc_range (unsigned offset, unsigned size) noexcept |
| Set the file allocation range for the fd table. | |
File descriptor table for io_uring.
This class makes an abstraction over the io_uring file registration interface.
Definition at line 22 of file ring_settings.hpp.
|
inlinenoexcept |
Destroy the file descriptor table.
Definition at line 53 of file ring_settings.hpp.
|
inline |
Initialize the file descriptor table with the given array of file descriptors.
| fds | Pointer to the array of file descriptors to register |
| nr_fds | Number of file descriptors in the array |
Definition at line 45 of file ring_settings.hpp.
|
inlinenoexcept |
Initialize the file descriptor table with the given capacity.
| capacity | The number of file descriptors to allocate in the table |
Definition at line 34 of file ring_settings.hpp.
|
inlinenoexcept |
Set the file allocation range for the fd table.
| offset | The starting offset of the file allocation range |
| size | The size of the file allocation range |
Definition at line 73 of file ring_settings.hpp.
|
inlinenoexcept |
Update the file descriptor table starting from the given index.
| index_base | The starting index to update |
| fds | Pointer to the array of file descriptors |
| nr_fds | Number of file descriptors to update |
Definition at line 63 of file ring_settings.hpp.