> -----Original Message----- > From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies- > Subject: Stat in kernel space > > Could somebody let me know which function equivalent/header file is > available in kernel space for "stat"ing? > I want an equivalent of stat/lstat/fstat in kernel space. http://kasperd.net/~kasperd/comp.os.linux.development.faq#filp_open I haven't done much background research on this so can't give you any concrete answers but the link above should help. I guess your kernel module should be ready to handle sleeping if you are trying to do file accesses from within the kernel. ./h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/