public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* route inode->block_device in 2.5?
@ 2002-09-12 16:22 Peter T. Breuer
  2002-09-17 12:31 ` Anton Altaparmakov
  0 siblings, 1 reply; 4+ messages in thread
From: Peter T. Breuer @ 2002-09-12 16:22 UTC (permalink / raw)
  To: linux kernel

Is there a pointer chain by which one can get to the struct
block_device of the underlying block device from an inode?

Well, or from kdev_t (since inode->i_rdev is such).

I want to drop a 'special' request on to the request queue of the
backing device, but I can't find a convenient entry point with more than
an inode to hand, and I can't find the route from there.  Tes, I can get
the major, and look at that offset in the blk_dev array, but those are
blk_dev_struct 's not struct block_device's.

I agree that you may well ask why I want to do this, but at the moment
this is just experimetin, so i can't answer sensibly - to try the effect
of 'special' requests, maybe. If it's not possible, tell me, and I'll
concentrate on some other thing.

Thanks for any hint kindly dropped ..

Peter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-17 20:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12 16:22 route inode->block_device in 2.5? Peter T. Breuer
2002-09-17 12:31 ` Anton Altaparmakov
2002-09-17 13:11   ` Alexander Viro
2002-09-17 20:36     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox