Peter Teoh escreveu:
your question is vague.....u never explain what u are trying to
do.....purpose why u need block device? used as a what? and then
purpose of address space (for your case)?
Not so vague ...
If you need to access the address space of a block device you use (so far):
struct block_device *bdev=open_bdev_excl("<dev>", ...);
struct address_space *mapping=bdev->bd_inode->i_mapping;
If bd_inode "will die", how do I do?
On Tue, Sep 9, 2008 at 11:46 AM, Paulo da Silva <psdasilva@xxxxxxxxxxxx> wrote:
In kernel 2.6.25, bd_inode of struct block_device has the comment "/*
will die */".
How can I get the address space (mapping) of a block device without
using bd_inode?
Thanks
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ