Re: calling system call from kernel module

From: aprasad@in.ibm.com
Date: Fri Oct 13 2000 - 00:17:28 EST


>> Is there any way to call system call from a kernel module???

>yes, just call it. system calls are just functions (mostly exported and
>when otherwise, use sys_call_table[] which is exported, but it won't work
>on __mips__) so you can just call them.

thanks tigran, but i am new to kernel programming and can you please tell
me how to pass arguments.

suppose i want to open a file
than soemthing like sys_call_table[__NR_OPEN] should be used, but i am
unable to figure out how to pass the arguments.

thanks again,

anil

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:24 EST