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?