Usually file system operations that begin with "generic_" are used by most "normal" file systems. "generic_file_read()" will perform a read operation, and "generic_file_open()" will perform an open operation. These generic functions are usually used by block-based file systems that do not need to do anything special for a given operation. Rather than have several file system write the same code, they were put into the VFS. I took a quick glance at the kiocb structure, and it looks like it is used for asynchronous I/O. If you want more specific answers, please ask more specific questions. Avishay Traeger http://www.fsl.cs.sunysb.edu/~avishay/ On Fri, 2006-01-06 at 10:31 +0530, Dhaval Shirsath wrote: > Hi, > can anybody tell about the following 2 Q's: > > 1] What does the generic_file_read() fn does & what is the role of > the structure "stuct kiocb" ,what is its use? > > 2]What does the generic_file_open() fn does ? > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/