From: Richard Gooch <rgooch@ras.ucalgary.ca>
To: nahshon@actcom.co.il
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: SCSI host numbers?
Date: Sun, 13 Jan 2002 23:36:04 -0700 [thread overview]
Message-ID: <200201140636.g0E6a4b16527@vindaloo.ras.ucalgary.ca> (raw)
In-Reply-To: <200201132041.g0DKfeg30866@lmail.actcom.co.il>
In-Reply-To: <E16LjdE-0003m4-00@the-village.bc.nu> <200201022335.g02NZaj10253@lmail.actcom.co.il> <200201060144.g061i9E09115@vindaloo.ras.ucalgary.ca> <200201132041.g0DKfeg30866@lmail.actcom.co.il>
Itai Nahshon writes:
> On Sunday 06 January 2002 03:44 am, Richard Gooch wrote:
> > Where exactly is the host_id for an unregistered host being
> > remembered?
>
> Sorry for the late reply. I was away from Email for the whole week.
>
> Scsi host numbers (for both regstered and unregistered hosts)
> are preserved in scsi_host_no_list.
>
> The list is used in the function scsi_register (in drivers/scsi/hosts.c).
> Same function also adds new hosts to the list.
>
> The list can be initialized (from boot parameters ?) by
> the function scsi_host_no_init (drivers/scsi/scsi.c).
Ah, yes. That was a patch someone sent to me years ago, and got
included in the jumbo devfs patch. There's a boot parameter which
allows you to control the allocation of host numbers.
So how about in scsi_host_no_init() we call alloc_unique_number() N
times until we've allocated the required number of host numbers for
manual control. These will never be freed. Then all other host
allocations can be done dynamically. We would just need a flag in the
host structure to disable deallocation of the number if it's one of
the reserved numbers.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
next prev parent reply other threads:[~2002-01-14 6:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-02 1:19 Itai Nahshon
2002-01-02 11:32 ` Alan Cox
2002-01-02 23:35 ` Itai Nahshon
2002-01-06 1:44 ` Richard Gooch
2002-01-13 20:41 ` Itai Nahshon
2002-01-14 6:36 ` Richard Gooch [this message]
2002-01-15 12:19 ` Itai Nahshon
2002-01-16 7:03 ` Richard Gooch
2002-01-16 9:47 ` Itai Nahshon
2002-03-21 21:48 ` [PATCH] [was SCSI host numbers? ] Itai Nahshon
2002-01-02 19:31 ` SCSI host numbers? Richard Gooch
2002-01-02 21:01 ` Alan Cox
2002-01-02 21:18 ` Richard Gooch
[not found] <mailman.1009934881.4099.linux-kernel2news@redhat.com>
2002-01-02 2:07 ` Pete Zaitcev
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=200201140636.g0E6a4b16527@vindaloo.ras.ucalgary.ca \
--to=rgooch@ras.ucalgary.ca \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=nahshon@actcom.co.il \
/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
all inboxes | Powered by JetHome®