sys_call_table[]
is in arch/x86/kernel/syscall_table_32.S.
How many system calls does Linux 2.6 support? What are the system call numbers for exit
, fork
, execve
, wait4
, read
, write
, and mkdir
?cd linux-2.6.25.10/arch/x86/kernel
명령어를 사용해 이 디렉토리로 이동함.sys_call_table
을 확인했을 때 0번부터 326번까지 총 327개의 system call을 지원함.kernel/sys_ni.c
. What is the role of sys_ni_syscall
?…
sys_ni_syscall
의 system call number
→ 17, 31, 32, 35, 44, 53, 56, 58, 98, 112, 127, 130, 137, 167, 188, 189, 222, 223, 251, 273, 285
sys_ni_syscall(void)
함수를 보면 -ENOSYS
를 리턴한다고 정의됨.-ENOSYS
는 에러를 리턴하는 함수로, ENOSYS 에러는 기능이 구현되지 않은 함수를 호출할 때 발생하는 에러이다.