Messages in this thread | | | Date | Wed, 14 Oct 1998 16:28:51 -0500 (CDT) | From | Ravi Wijayaratne <> | Subject | Disk 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/
| |