>> 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to