C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
Loading...
Searching...
No Matches
syscall.h
1
#pragma once
2
3
#include <kernel/syscall.h>
4
5
struct
Syscall_Entry_t
* os_syscalls_start(
void
);
6
struct
Syscall_Entry_t
* os_syscalls_end(
void
);
7
8
extern
void
cmrx_posix_register_syscalls
(
struct
Syscall_Entry_t
*
syscalls
);
9
10
#define REGISTER_SYSCALLS(...) \
11
static struct Syscall_Entry_t syscalls[] = { __VA_ARGS__, { 0, 0} };\
12
__attribute__((constructor)) void register_syscalls_ ## __COUNTER__(void)\
13
{\
14
cmrx_posix_register_syscalls(syscalls);\
15
}
syscalls
static struct Syscall_Entry_t syscalls[256]
List of registered syscalls.
Definition
posix.c:62
cmrx_posix_register_syscalls
void cmrx_posix_register_syscalls(struct Syscall_Entry_t *syscalls)
Register syscall with kernel.
Definition
posix.c:292
Syscall_Entry_t
Entry in syscall table.
Definition
syscall.h:31
src
os
arch
linux
posix
arch
syscall.h
Generated by
1.9.8