On Tue, 5 Oct 2004, Danett song wrote: > I tryed figure out how to read a file from a LKM, i > done like this: > At init_module > int init_module(void){ > or_open=sys_call_table[__NR_open]; > or_read=sys_call_table[__NR_read]; > or_close=sys_call_table[__NR_close]; 1) You probobaly won't like to do this 2) No, you really don't want to do it 3) If you still think you need it, look at function filp_open() -- JiKos. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/