http://manpages.courier-mta.org/htmlman2/_syscall.2.html
http://manpages.courier-mta.org/htmlman2/syscall.2.html
http://manpages.courier-mta.org/htmlman2/syscalls.2.html
http://blog.youkuaiyun.com/ender049/archive/2008/05/30/2495555.aspx
some disscusionn online:
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Hey guys. I am trying to implement a system call in linux kernel. I usually use ubutntu, but this I am doing on Fedora. I am using kernel 2.6. Here is what I did:
1. Added a line to arch/i386/kernel/syscall_table.S:
.long sys_foo
2. Added a line to linux/include/asm-i386/unistd.h:
#define __NR_foo 324
also incremented the call count by 1.
3. Added this code to sys.c
[code]
asmlinkage long sys_foo(void)
{
printk("Hello Kernel World");
return THREAD_SIZE;
}<