public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Edward Falk <efalk@google.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: map gendisk (or blockdev) -> scsi_device
Date: Wed, 13 Jul 2005 15:38:43 +0100	[thread overview]
Message-ID: <20050713143843.GC26025@infradead.org> (raw)
In-Reply-To: <db1npr$c1d$1@sea.gmane.org>

On Tue, Jul 12, 2005 at 05:38:19PM -0700, Edward Falk wrote:
> Hi all; what's the proper way to get the scsi_device structure from a 
> gendisk structure?

No.

> sd.c uses pointers through scsi_disk, but that 
> structure is private to sd.c.  Will I need to add an access function in 
> sd.c or something?

You should revisit your code to not need access to the scsi_device
structure, and follow the layering of the block and scsi subsystems.


  parent reply	other threads:[~2005-07-13 14:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13  0:38 map gendisk (or blockdev) -> scsi_device Edward Falk
2005-07-13  1:31 ` Chen, Kenneth W
2005-07-13 14:38 ` Christoph Hellwig [this message]
2005-07-13 18:44   ` Edward Falk
2005-07-13 23:46     ` Patrick Mansfield
2005-07-14 18:38       ` Edward Falk
2005-07-14 19:56       ` Christoph Hellwig
2005-07-14 22:54         ` Edward Falk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050713143843.GC26025@infradead.org \
    --to=hch@infradead.org \
    --cc=efalk@google.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox