My os-book says that if you want to add a system call to the Linux kernel, edit linux-2.x/include/asm-i386/unistd.h .
But the original linux kernel structure seems to have changed a lot. In the source tree of the linux-2.6.34.1 I find only linux-2.6.34.1/include/asm-generic/unistd.h and linux-2.6.34.1/arch/x86/include/asm/unistd.h .
Editing the latter seems to make sense.
My question is: what is /inlcude/asm-generic ? How can related code be shared?
source share