Messages in this thread |  | | From | aprasad@in ... | Date | Fri, 13 Oct 2000 10:47:28 +0530 | Subject | Re: calling system call from kernel module |
| |
>> 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/
|  |