|
|
Subscribe / Log in / New account

Creating BIO structure

Creating BIO structure

Posted Feb 22, 2005 17:28 UTC (Tue) by vabank (guest, #28037)
In reply to: Creating BIO structure by explorer
Parent article: Driver porting: the BIO structure

there are fs/block_dev.c entry point:
struct block_device *open_by_devnum(dev_t dev, unsigned mode)


to post comments

Creating BIO structure

Posted Feb 23, 2005 7:14 UTC (Wed) by explorer (guest, #27894) [Link]

Hi vabank,

Thanks for your reply.

I have already tested that api open_by_devnum.
But it oops.

The problem is open_by_devnum(block_device *bd, int mode)
calls blkdev_get function which makes use of bd->bd_inode field to get the block device structure.

How I can get the inode field for a dev_t structure?

Sorry for the inconvenience.

Regards,
Explorer.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds