Max OS 0.3
Loading...
Searching...
No Matches
syscalls.h File Reference

Defines the SyscallManager class for handling system calls from userspace applications. More...

#include <cstdint>
#include <cstddef>
#include <hardwarecommunication/interrupts.h>
#include <common/vector.h>
#include <common/colour.h>
#include <memory/memorymanagement.h>
#include <processes/scheduler.h>
#include <system/syscalls.h>

Go to the source code of this file.

Classes

struct  MaxOS::system::SyscallArguments
 The arguments passed to a syscall (simplified representation of values in registers) More...
 
class  MaxOS::system::SyscallManager
 Provides an API for userspace applications to interact with the kernel. More...
 

Typedefs

typedef struct MaxOS::system::SyscallArguments MaxOS::system::syscall_args_t
 Alias for SyscallArguments struct.
 
typedef syscall_args_t *(* MaxOS::system::syscall_func_t) (syscall_args_t *args)
 

Detailed Description

Defines the SyscallManager class for handling system calls from userspace applications.

Date
27th October 2022
Author
Max Tyson
Todo:
'<system/syscalls.h>' Rename / make clear that this references the system lib

Definition in file syscalls.h.

Typedef Documentation

◆ syscall_func_t

typedef syscall_args_t *(* MaxOS::system::syscall_func_t) (syscall_args_t *args)
Todo:
Could use a class based response but a single class might want multiple handlers e.g. fs

Definition at line 50 of file syscalls.h.