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)
Posted Feb 23, 2005 7:14 UTC (Wed)
by explorer (guest, #27894)
[Link]
Thanks for your reply.
I have already tested that api open_by_devnum.
The problem is open_by_devnum(block_device *bd, int mode)
How I can get the inode field for a dev_t structure?
Sorry for the inconvenience.
Regards,
Hi vabank,Creating BIO structure
But it oops.
calls blkdev_get function which makes use of bd->bd_inode field to get the block device structure.
Explorer.