source: trunk/kernel/syscalls/shared_include/syscalls_numbers.h @ 648

Last change on this file since 648 was 642, checked in by alain, 5 years ago

Introduce two new syscalls : sys_get_thread_info() / sys_fbf()

File size: 3.0 KB
Line 
1/*
2 * syscalls_numbers.c - Contains enum of the syscalls.
3 *
4 * Author    Alain Greiner (2016,2017,2018,2019)
5 *
6 * Copyright (c) UPMC Sorbonne Universites
7 *
8 * This file is part of ALMOS-MKH.
9 *
10 * ALMOS-MKH is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; version 2.0 of the License.
13 *
14 * ALMOS-MKH is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ALMOS-MKH; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#ifndef _SYSCALLS_NUMBERS_H_
25#define _SYSCALLS_NUMBERS_H_
26
27/******************************************************************************************
28 * This enum defines the mnemonics for the syscall indexes.
29 * It must be kept consistent with the array defined in do_syscalls.c
30 *****************************************************************************************/
31typedef enum 
32{
33    SYS_THREAD_EXIT     = 0,
34    SYS_THREAD_YIELD    = 1,
35    SYS_THREAD_CREATE   = 2,
36    SYS_THREAD_JOIN     = 3,
37    SYS_THREAD_DETACH   = 4,
38    SYS_THREAD_CANCEL   = 5,
39    SYS_SEM             = 6,
40    SYS_CONDVAR         = 7,
41    SYS_BARRIER         = 8,
42    SYS_MUTEX           = 9,
43
44    SYS_RENAME          = 10,
45    SYS_MUNMAP          = 11,
46    SYS_OPEN            = 12,
47    SYS_MMAP            = 13,
48    SYS_READ            = 14,
49    SYS_WRITE           = 15,
50    SYS_LSEEK           = 16,
51    SYS_CLOSE           = 17,
52    SYS_UNLINK          = 18,
53    SYS_PIPE            = 19,
54
55    SYS_CHDIR           = 20,
56    SYS_MKDIR           = 21,
57    SYS_MKFIFO          = 22,
58    SYS_OPENDIR         = 23,
59    SYS_READDIR         = 24,
60    SYS_CLOSEDIR        = 25,
61    SYS_GETCWD          = 26,
62    SYS_ISATTY          = 27,
63    SYS_ALARM           = 28,
64    SYS_RMDIR           = 29,
65
66    SYS_UTLS            = 30,
67    SYS_CHMOD           = 31,
68    SYS_SIGNAL          = 32,
69    SYS_TIMEOFDAY       = 33,
70    SYS_KILL            = 34,
71    SYS_GETPID          = 35,
72    SYS_FORK            = 36,
73    SYS_EXEC            = 37,
74    SYS_STAT            = 38,
75    SYS_WAIT            = 39,
76
77    SYS_GET_CONFIG      = 40,
78    SYS_GET_CORE_ID     = 41,
79    SYS_GET_CYCLE       = 42,
80    SYS_DISPLAY         = 43,
81    SYS_PLACE_FORK      = 44, 
82    SYS_THREAD_SLEEP    = 45,
83    SYS_THREAD_WAKEUP   = 46,
84    SYS_TRACE           = 47,
85    SYS_FG              = 48,
86    SYS_IS_FG           = 49,
87
88    SYS_EXIT            = 50,
89    SYS_SYNC            = 51,
90    SYS_FSYNC           = 52,
91    SYS_GET_BEST_CORE   = 53,
92    SYS_GET_NB_CORES    = 54,
93    SYS_GET_THREAD_INFO = 55,
94    SYS_FBF             = 56,
95
96    SYSCALLS_NR         = 57,
97
98} syscalls_t;
99
100#endif // _SYSCALLS_NUMBERS_H_
Note: See TracBrowser for help on using the repository browser.