Laboratory 4 (hints)

Preparation

Remember when you grep over the source code to focus on arch/i386 as this is the architecture we are using.

The main file you are looking for contains the table that has the system call "entry". The word "entry" is a hint.

The locations where the system calls are implemented can be anywhere in the kernel.

Note within the kernel the system call is called something like "sys_<name>", whereas in user space it is called just "<name>". The only thing linking these is the entry in the table. The name within the kernel, "sys_<name>", is defined via a macro.

This lab involves changes to the file "syscall_table_32.S" and "namei.c". And the creation of your own user space program.