From sys.c line 123:
void *sys_call_table[__NR_syscalls] =
{
[0 ... __NR_syscalls-1] = sys_ni_syscall,
#include <asm/unistd.h>
};
sys_call_table
is a generic pointer to arrays, I can see that. However what is the notation:
[0 ... __NR_syscalls-1]
What is the ...
?
EDIT:
I learned another C trick here: #include <asm/unistd.h>
will be preprocessed and replaced with its content and assigned to [0 ... _NR_syscalls-1]
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…