Hi, I have a question about a kernel module that I wrote on RH6.2 . In this module, I am intercepting the open system call and reading the /proc directory. The module is working when i do an insmod. It also works when I type some commands like ls,.. etc. I am running apache web server on the same system. When I send many requests (in a forever loop) to the server,the system crashes due to my module. Please tell me if anything is wrong with the function given below. Am I making a mistake like reading the directory while it is being written? I am very new to writing kernel modules. I would really appreciate a reply. Thanks in advance, Femitha. static void readproc1(void) { int i,fd,res; struct my_dentry ent={"/proc/",1}; struct file* file; mm_segment_t oldfs; struct inode *inode; file = filp_open_R3418d8a1("/proc",O_RDONLY,0600); inode = file->f_dentry->d_inode; for(i=0;i<=1;i++){ res = file->f_op->readdir(file,(void *)&ent,my_filldir); } if (file) filp_close_R9b838285(file, NULL); return; } _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/