Hi, The function that does the check in the buffer cache before reading in blocks from the device in getblk(). Both block_read() and bread() use this function. Regards, Bijoy. ----- Original Message ----- From: manish regmi <regmi.manish@xxxxxxxxx> Date: Wednesday, September 29, 2004 11:31 pm Subject: Re: Read operation on Block device. > On Wed, 29 Sep 2004 09:36:29 -0400, Bijoy Thomas <bijoyjth@xxxxxxx> > wrote:> Once you call read() on a file descriptor, the VFS layer > routes it to the read function of the actual filesystem (via the > file_operations struct). The filesystem read then calls bread() to > get the actual blocks from the disk into memory. > > > > I think the function you are looking for are bread() and > block_read().> > > Regards, > > Bijoy. > > > > Now, I got it. The Block device read operation passes through the > buffer cache. Thanks for that info. > > Now, If it is not in Buffer Cache. How does Buffer Cache gets data > from the disk. Which function Does it call? > > thanks > Manish > > -- > 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/