Type used for syscall return error codes (negative values). More...
#include <lnx_kernel_utils.hpp>
Public Member Functions | |
| ErrCodeType () | |
| std::string | str (std::shared_ptr< arion::Arion > arion, uint64_t val) override |
Public Member Functions inherited from arion_type::KernelType | |
| virtual | ~KernelType ()=default |
| Virtual destructor to allow polymorphic deletion. | |
| arion::LOG_COLOR | get_color () |
Additional Inherited Members | |
Protected Member Functions inherited from arion_type::KernelType | |
| KernelType (std::string name, arion::LOG_COLOR color=arion::LOG_COLOR::DEFAULT) | |
Type used for syscall return error codes (negative values).
|
inline |
Builder for ErrCodeType instances.
|
overridevirtual |
Converts an error code value to its string representation (e.g., "-2" to "-ENOENT").
| [in] | arion | Shared pointer to the Arion instance. |
| [in] | val | The error code value (usually negative). |
Reimplemented from arion_type::KernelType.