[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reading a file from a module
I am facing problems during reading a file from my module. The file is a
proc file.
I am not using the systemcall open(). I am using the sys_open().
I create a function pointer of the type sys_open say my_open
and do
my_open = syscall[__NR_OPEN];
and then use it to open the file...
But when i do this, i am getting an errno of -14
which is I suppose illegal operation. So what more do i need to open the
file from my module.
thanks,
raghu
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/