API Documentation


Syscall Handling

group syscall

Typedefs

typedef void(* optimsoc_syscall_handler_fptr)(struct optimsoc_syscall *sysc)

Syscall handler function

The user or the runtime system registers the syscall handler function that is called with a pointer to the syscall data.

Parameters
  • sysc: The syscall data

Functions

void optimsoc_syscall_handler_set(optimsoc_syscall_handler_fptr handler)

Register a syscall handler

Parameters
  • handler: The syscall handler function to call on syscall exceptions.

struct optimsoc_syscall
#include <optimsoc-runtime.h>

Syscall data

The syscall data is an identifier, up to six parameters and a return value.