public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: Ming Zhang <mingz@ele.uri.edu>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: about scsi_hostlist
Date: Sun, 17 Nov 2002 17:30:51 -0500	[thread overview]
Message-ID: <20021117223051.GJ3280@redhat.com> (raw)
In-Reply-To: <200211172212.gAHMCp99017977@leviathan.ele.uri.edu>

On Sun, Nov 17, 2002 at 05:11:28PM -0500, Ming Zhang wrote:
> Hi, I meet a problem when port my code to 2.5.47.
> My goal is to get all scsi disk Scsi_Device pointers.

Why?  A couple people on this list have been trying to put proper object 
ref counting in place, and doing this sort of thing usually violates those 
ref counting rules, so unless you have a true valid need to do this, the 
answer is probably going to be "Don't do that".

> For 2.4.18, I can use scsi_hostlist to travel through the list and get all pointer by comparing type if TYPE_DISK. But in 2.5.47, there is no such pointer. And that scsi_host_list can not be used.
> 
> Does anyone know how to get around to this? 
> 
> Thanks in advance.
> 
> 
> 
> Best regards. 
> 
> 
> Ming Zhang
> ------------------------------
> Member of IEEE, ACM
> mingz@ele.uri.edu
> http://www.ele.uri.edu/~mingz
> 1(401)874-4859
> 
> Department of Electrical and Computer Engineering
> University of Rhode Island
> 
> 4 East Alumni Ave. Kingston, RI, 02881
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

  reply	other threads:[~2002-11-17 22:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-17 22:11 about scsi_hostlist Ming Zhang
2002-11-17 22:30 ` Doug Ledford [this message]
2002-11-17 22:35 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2002-11-17 22:35 Ming Zhang
2002-11-17 22:41 ` Christoph Hellwig
2002-11-17 22:43 Ming Zhang
2002-11-17 22:57 ` Christoph Hellwig

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=20021117223051.GJ3280@redhat.com \
    --to=dledford@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mingz@ele.uri.edu \
    /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