[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access content of file via inodes



On Apr 5, 2005 9:26 AM, nitin ahuja <nitin2ahuja@xxxxxxxxxxxxx>
> In struct buffer_head, b_data points to memory region of size 4K 
> containing data of the desired block. So you can memcpy it to your 
> buffer.

Not necessarily 4K even though that is most likely. You can get the
size of the buffer from its b_size field.

HTH

Martin Jambor

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/