Implementing a system call in kernel 2.6.32 is somehow different from
The method in kernel 3.10.56.
In kernel 2.6.32, We shoshould register the system call number in the file
/ARCH/x86/include/ASM/unistd_64.h and then add the corresponding function
Prototype of system call in the file/include/Linux/syscils. h.
But in kernel 3.10.56, we just need modify one file/ARCH/x86/syscils/syscall_64.tbl,
For example, we want to add a system call print_info in kernel 3.10.56, adding the entry
314 common print_info sys_print_info
At here,314Represents the system call number,CommonMeans we can use this system
Call under 32 bit architecture and 64 bit architecture. The last two items have the same
Meaning as in kernel 2.6.32.
Under the system call entry 313 is OK. Also you shoshould implement this system call in
Appropriate Souce file.
Implement a system call in kernel 3.10.56 (x86_64)