[lkml]   [2000]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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,


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.047 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site