LWN.net Logo

Creating BIO structure

Creating BIO structure

Posted Feb 23, 2005 7:14 UTC (Wed) by explorer (guest, #27894)
In reply to: Creating BIO structure by vabank
Parent article: Driver porting: the BIO structure

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.


(Log in to post comments)

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