contur2
Loading...
Searching...
No Matches
contur::ISyscallHandler Class Referenceabstract

Interface for syscall handling. More...

#include <syscall_handler.h>

Public Member Functions

virtual ~ISyscallHandler ()=default
virtual Result< RegisterValuehandle (SyscallId id, std::span< const RegisterValue > args, ProcessImage &caller)=0
 Handles a syscall request.

Detailed Description

Interface for syscall handling.

Implementations execute kernel-side logic for a syscall and return register-compatible results.

Definition at line 21 of file syscall_handler.h.

Constructor & Destructor Documentation

◆ ~ISyscallHandler()

virtual contur::ISyscallHandler::~ISyscallHandler ( )
virtualdefault

Member Function Documentation

◆ handle()

virtual Result< RegisterValue > contur::ISyscallHandler::handle ( SyscallId id,
std::span< const RegisterValue > args,
ProcessImage & caller )
nodiscardpure virtual

Handles a syscall request.

Parameters
idSyscall identifier.
argsSyscall arguments from user context.
callerCalling process image.
Returns
RegisterValue result or an error code.

The documentation for this class was generated from the following file: