Dispatch table mapping SyscallId to handler functions.
More...
#include <syscall_table.h>
|
| std::unique_ptr< Impl > | impl_ |
Dispatch table mapping SyscallId to handler functions.
Definition at line 21 of file syscall_table.h.
◆ HandlerFn
Function signature used for syscall handlers.
Definition at line 25 of file syscall_table.h.
◆ SyscallTable() [1/3]
| contur::SyscallTable::SyscallTable |
( |
| ) |
|
◆ ~SyscallTable()
| contur::SyscallTable::~SyscallTable |
( |
| ) |
|
◆ SyscallTable() [2/3]
| contur::SyscallTable::SyscallTable |
( |
const SyscallTable & | | ) |
|
|
delete |
◆ SyscallTable() [3/3]
| contur::SyscallTable::SyscallTable |
( |
SyscallTable && | | ) |
|
|
noexcept |
◆ dispatch()
Dispatches syscall to registered handler.
- Returns
- Handler result or NotFound when no handler is registered.
◆ handlerCount()
| std::size_t contur::SyscallTable::handlerCount |
( |
| ) |
const |
|
nodiscardnoexcept |
Number of registered handlers.
◆ hasHandler()
| bool contur::SyscallTable::hasHandler |
( |
SyscallId | id | ) |
const |
|
nodiscardnoexcept |
Returns true when id has a registered handler.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ registerHandler() [1/2]
Registers/replaces a function handler for syscall id.
- Returns
- Ok on success, InvalidArgument for empty function.
◆ registerHandler() [2/2]
Registers/replaces an interface-based handler for syscall id.
The table stores a lightweight wrapper that forwards to handler.
◆ unregisterHandler()
Unregisters a handler for syscall id.
- Returns
- Ok on success or NotFound.
◆ impl_
| std::unique_ptr<Impl> contur::SyscallTable::impl_ |
|
private |
The documentation for this class was generated from the following file: