|
FlatImage
A configurable Linux containerization system
|
Linux-specific system operations. More...
Functions | |
| bool | poll_with_timeout (int fd, short events, std::chrono::milliseconds const &timeout) |
| Waits for a file descriptor to be ready for I/O with a timeout. | |
| template<typename Data> | |
| ssize_t | read_with_timeout (int fd, std::chrono::milliseconds const &timeout, std::span< Data > buf) |
| Reads from the file descriptor with a timeout. | |
| template<typename Data> | |
| ssize_t | write_with_timeout (int fd, std::chrono::milliseconds const &timeout, std::span< Data > buf) |
| Writes to the file descriptor with a timeout. | |
| int | open_with_timeout (fs::path const &path_file_src, std::chrono::milliseconds timeout, int oflag) |
| Opens a given file with a timeout. | |
| template<typename Data> | |
| ssize_t | open_read_with_timeout (fs::path const &path_file_src, std::chrono::milliseconds const &timeout, std::span< Data > buf) |
| Opens and reads from the given input file. | |
| template<typename Data> | |
| ssize_t | open_write_with_timeout (fs::path const &path_file_src, std::chrono::milliseconds const &timeout, std::span< Data > buf) |
| Opens and writes to the given input file. | |
| Value< bool > | module_check (std::string_view str_name) |
| Checks if the linux kernel has a module loaded that matches the input name. | |
Linux-specific system operations.
Provides Linux kernel-specific functionality including kernel module availability checking, system capability detection, and OS-level feature queries. Used to verify FUSE module availability and other kernel features required by FlatImage.
|
inlinenodiscard |
Checks if the linux kernel has a module loaded that matches the input name.
| str_name | Name of the module to check for |
Definition at line 243 of file linux.hpp.
|
inlinenodiscard |
Opens and reads from the given input file.
| Data | Type of data elements in the buffer |
| path_file_src | Path to the file to open and read |
| timeout | The timeout in std::chrono::milliseconds |
| buf | The buffer in which to store the read data |
Definition at line 205 of file linux.hpp.
|
inlinenodiscard |
Opens a given file with a timeout.
| path_file_src | Path for the file to open |
| timeout | The timeout in std::chrono::milliseconds |
| oflag | The open flags O_* |
Definition at line 143 of file linux.hpp.
|
inlinenodiscard |
Opens and writes to the given input file.
| Data | Type of data elements in the buffer |
| path_file_src | Path to the file to open and write |
| timeout | The timeout in std::chrono::milliseconds |
| buf | The buffer with the data to write |
Definition at line 226 of file linux.hpp.
|
inlinenodiscard |
Waits for a file descriptor to be ready for I/O with a timeout.
| fd | The file descriptor to poll |
| events | Poll events (POLLIN for read, POLLOUT for write) |
| timeout | The timeout in std::chrono::milliseconds |
Definition at line 53 of file linux.hpp.
|
inlinenodiscard |
Reads from the file descriptor with a timeout.
| Data | Type of data elements in the buffer |
| fd | The file descriptor |
| timeout | The timeout in std::chrono::milliseconds |
| buf | The buffer in which to store the read data |
Definition at line 89 of file linux.hpp.
|
inlinenodiscard |
Writes to the file descriptor with a timeout.
| Data | Type of data elements in the buffer |
| fd | The file descriptor |
| timeout | The timeout in std::chrono::milliseconds |
| buf | The buffer with the data to write |
Definition at line 115 of file linux.hpp.