Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
include
kernel
syscall.h
Go to the documentation of this file.
1
// GENERATED. DO NOT EDIT FROM HERE!
2
// Change definitions in scripts/gen-syscalls.py
3
// Created on 2024-01-25 17:49
4
6
/* clang-format off */
7
#ifndef __KERNEL_SYSCALL_H__
8
#define __KERNEL_SYSCALL_H__
9
10
#define SYSCALL_CNT 66
11
12
#define THREAD_INFO 1
13
#define SETPROGNAME 2
14
#define DELAY_TICKS 3
15
#define TASK_CREATE 4
16
#define MPOOL_ALLOC 5
17
#define MINFO 6
18
#define SCHED_YIELD 7
19
#define EXIT 8
20
#define MOUNT 9
21
#define OPEN 10
22
#define CLOSE 11
23
#define DUP 12
24
#define DUP2 13
25
#define READ 14
26
#define WRITE 15
27
#define IOCTL 16
28
#define LSEEK 17
29
#define FSTAT 18
30
#define OPENDIR 19
31
#define READDIR 20
32
#define GETCWD 21
33
#define CHDIR 22
34
#define GETPID 23
35
#define MKNOD 24
36
#define MKFIFO 25
37
#define POLL 26
38
#define MQ_GETATTR 27
39
#define MQ_SETATTR 28
40
#define MQ_OPEN 29
41
#define MQ_CLOSE 30
42
#define MQ_UNLINK 31
43
#define MQ_RECEIVE 32
44
#define MQ_SEND 33
45
#define PTHREAD_CREATE 34
46
#define PTHREAD_SELF 35
47
#define PTHREAD_JOIN 36
48
#define PTHREAD_DETACH 37
49
#define PTHREAD_CANCEL 38
50
#define PTHREAD_SETSCHEDPARAM 39
51
#define PTHREAD_GETSCHEDPARAM 40
52
#define PTHREAD_YIELD 41
53
#define PTHREAD_KILL 42
54
#define PTHREAD_EXIT 43
55
#define PTHREAD_MUTEX_UNLOCK 44
56
#define PTHREAD_MUTEX_LOCK 45
57
#define PTHREAD_MUTEX_TRYLOCK 46
58
#define PTHREAD_COND_SIGNAL 47
59
#define PTHREAD_COND_BROADCAST 48
60
#define PTHREAD_COND_WAIT 49
61
#define PTHREAD_ONCE 50
62
#define SEM_POST 51
63
#define SEM_TRYWAIT 52
64
#define SEM_WAIT 53
65
#define SEM_GETVALUE 54
66
#define SIGACTION 55
67
#define SIGWAIT 56
68
#define KILL 57
69
#define RAISE 58
70
#define CLOCK_GETTIME 59
71
#define CLOCK_SETTIME 60
72
#define TIMER_CREATE 61
73
#define TIMER_DELETE 62
74
#define TIMER_SETTIME 63
75
#define TIMER_GETTIME 64
76
#define MALLOC 65
77
#define FREE 66
78
79
#define SYSCALL_RETURN_EVENT 67
80
#define SIGNAL_CLEANUP_EVENT 68
81
#define THREAD_RETURN_EVENT 69
82
#define THREAD_ONCE_EVENT 70
83
84
#define SYSCALL_TABLE_INIT \
85
DEF_SYSCALL(thread_info, THREAD_INFO), \
86
DEF_SYSCALL(setprogname, SETPROGNAME), \
87
DEF_SYSCALL(delay_ticks, DELAY_TICKS), \
88
DEF_SYSCALL(task_create, TASK_CREATE), \
89
DEF_SYSCALL(mpool_alloc, MPOOL_ALLOC), \
90
DEF_SYSCALL(minfo, MINFO), \
91
DEF_SYSCALL(sched_yield, SCHED_YIELD), \
92
DEF_SYSCALL(exit, EXIT), \
93
DEF_SYSCALL(mount, MOUNT), \
94
DEF_SYSCALL(open, OPEN), \
95
DEF_SYSCALL(close, CLOSE), \
96
DEF_SYSCALL(dup, DUP), \
97
DEF_SYSCALL(dup2, DUP2), \
98
DEF_SYSCALL(read, READ), \
99
DEF_SYSCALL(write, WRITE), \
100
DEF_SYSCALL(ioctl, IOCTL), \
101
DEF_SYSCALL(lseek, LSEEK), \
102
DEF_SYSCALL(fstat, FSTAT), \
103
DEF_SYSCALL(opendir, OPENDIR), \
104
DEF_SYSCALL(readdir, READDIR), \
105
DEF_SYSCALL(getcwd, GETCWD), \
106
DEF_SYSCALL(chdir, CHDIR), \
107
DEF_SYSCALL(getpid, GETPID), \
108
DEF_SYSCALL(mknod, MKNOD), \
109
DEF_SYSCALL(mkfifo, MKFIFO), \
110
DEF_SYSCALL(poll, POLL), \
111
DEF_SYSCALL(mq_getattr, MQ_GETATTR), \
112
DEF_SYSCALL(mq_setattr, MQ_SETATTR), \
113
DEF_SYSCALL(mq_open, MQ_OPEN), \
114
DEF_SYSCALL(mq_close, MQ_CLOSE), \
115
DEF_SYSCALL(mq_unlink, MQ_UNLINK), \
116
DEF_SYSCALL(mq_receive, MQ_RECEIVE), \
117
DEF_SYSCALL(mq_send, MQ_SEND), \
118
DEF_SYSCALL(pthread_create, PTHREAD_CREATE), \
119
DEF_SYSCALL(pthread_self, PTHREAD_SELF), \
120
DEF_SYSCALL(pthread_join, PTHREAD_JOIN), \
121
DEF_SYSCALL(pthread_detach, PTHREAD_DETACH), \
122
DEF_SYSCALL(pthread_cancel, PTHREAD_CANCEL), \
123
DEF_SYSCALL(pthread_setschedparam, PTHREAD_SETSCHEDPARAM), \
124
DEF_SYSCALL(pthread_getschedparam, PTHREAD_GETSCHEDPARAM), \
125
DEF_SYSCALL(pthread_yield, PTHREAD_YIELD), \
126
DEF_SYSCALL(pthread_kill, PTHREAD_KILL), \
127
DEF_SYSCALL(pthread_exit, PTHREAD_EXIT), \
128
DEF_SYSCALL(pthread_mutex_unlock, PTHREAD_MUTEX_UNLOCK), \
129
DEF_SYSCALL(pthread_mutex_lock, PTHREAD_MUTEX_LOCK), \
130
DEF_SYSCALL(pthread_mutex_trylock, PTHREAD_MUTEX_TRYLOCK), \
131
DEF_SYSCALL(pthread_cond_signal, PTHREAD_COND_SIGNAL), \
132
DEF_SYSCALL(pthread_cond_broadcast, PTHREAD_COND_BROADCAST), \
133
DEF_SYSCALL(pthread_cond_wait, PTHREAD_COND_WAIT), \
134
DEF_SYSCALL(pthread_once, PTHREAD_ONCE), \
135
DEF_SYSCALL(sem_post, SEM_POST), \
136
DEF_SYSCALL(sem_trywait, SEM_TRYWAIT), \
137
DEF_SYSCALL(sem_wait, SEM_WAIT), \
138
DEF_SYSCALL(sem_getvalue, SEM_GETVALUE), \
139
DEF_SYSCALL(sigaction, SIGACTION), \
140
DEF_SYSCALL(sigwait, SIGWAIT), \
141
DEF_SYSCALL(kill, KILL), \
142
DEF_SYSCALL(raise, RAISE), \
143
DEF_SYSCALL(clock_gettime, CLOCK_GETTIME), \
144
DEF_SYSCALL(clock_settime, CLOCK_SETTIME), \
145
DEF_SYSCALL(timer_create, TIMER_CREATE), \
146
DEF_SYSCALL(timer_delete, TIMER_DELETE), \
147
DEF_SYSCALL(timer_settime, TIMER_SETTIME), \
148
DEF_SYSCALL(timer_gettime, TIMER_GETTIME), \
149
DEF_SYSCALL(malloc, MALLOC), \
150
DEF_SYSCALL(free, FREE) \
151
152
#endif
153
/* clang-format on */
Generated by
1.9.1