lkml.org 
[lkml]   [1998]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectDisk geometry in ll_rw_blk
Hi,

I need to get the disk device geometry in ll_rw_blk.c. One way I think I
can do this is to use hd_ioctl function defined in hd.c. But to use this
function I have to pass an inode as an argument. hd_ioctl uses
inode->r_dev to determine the device number. But the I cannot trace the
inode of a buffer head from within ll_rw_blk.c since inode information
is not available inside ll_rw_blk.c. I have two questions regarding this.
So if I use this approach how can I get the inode information to pass as
an argument probably tracing the buffer_head structure back to the inode.
How can I do this.

The disk geometry information is stored in hd__i_struct hd_info[] which is
defined as static and hd_i_struct bios_info[] in hd.c and at at startup
time (init -> hd_setup) these two structures are filled. Is there any way
I could access this information from within ll_rw_blk.c ?

Solution to either problem will help me immensely.

Some help is greatly appreciated.

Thank you
Ravi



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.021 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site