The central change is adding to the syscall table. Coordinating changes must be made in the syscalls header file.
The additions to the syscall table are function pointers. We implement the functions in a new file, kernel/mysyscalls.c, and modify a Makefile to instruct the kernel build to compile and incorporate the new file into the kernel.
Three existing files in the kernel source tree are modified, and one file is added. The file is a hyperlink to the file. I have shown additions in red.
d: linux-source-3.13.0 | +--- d: arch | | | +--- d: x86 | | | +--- d: syscalls | | | +--- f: syscall_32.tbl | +--- d: include | | | +--- d: linux | | | +--- f: syscalls.h | +--- d: kernel | +--- f: Makefile f: mysyscalls.c (this file is added)
author: burton rosenberg
created: 14 sep 2015
update: 14 sep 2015