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 should 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/syscalls.h.
But in kernel 3.10.56, we just need modify one file /arch/x86/syscalls/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, 314 represents the system call number, common means 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 should implement this system call in the
appropriate souce file.