Linux Kernel - traverse to buffer heads

Posted by CodeRanger on Stack Overflow See other posts from Stack Overflow or by CodeRanger
Published on 2010-04-21T01:54:04Z Indexed on 2010/04/21 2:03 UTC
Read the original article Hit count: 427

In the Linux kernel, is there a way to traverse down to the buffer_heads from within a module?

I can see how to get to struct bio (task_struct macro: current->bio). But how can I get to the buffer heads? The buffer_head struct holds some information I'd like to obtain at any point regarding physical block numbers.

© Stack Overflow or respective owner

Related posts about kernel

Related posts about linux-kernel