We just got a midterm project today for my \"operating systems\" course, we are requested to implement a system call (and I guess I assume we\'ll have to write a piece of code t
but does this mean I'll have to recompile the whole kernel, so the kernel knows about my module?
Yes, you will need to recompile the kernel.
I understand I'll need to update the table of the system calls
It's /usr/src/linux/arch/i386/kernel/syscall_table.S
does this mean I'll have to recompile the whole kernel, so the kernel knows about my module?
Yes, indeed.
Just wanted to get a feel for the size of the effort I'll be making.
If you know what code you are going to write as a part of the system call, you're already done. You only have to wait out the kernel recompilation time. Here's a set of instructions:
Implementing a System Call in Linux
You want to read:
and possibly as well for more details: