As an example, here is a code snip that make a sys_read call from a kernel module. // module.c .... #include <sys/syscall.h> extern long sys_call_table[]; // arch/i386/kernel/entry.S int (*sys_read)(unsigned int fd, char *buf, int count); // pointer to sys_read. linux/fs/read_write.c .... int init_module(void) { ... sys_read = sys_call_table[SYS_read]; //now you can use sys_read sys_read(...); ... } |