From: Simon White <sidplay2@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Multiple virtual bus instances
Date: Wed, 7 Feb 2007 14:15:08 -0800 (PST) [thread overview]
Message-ID: <883291.79449.qm@web52902.mail.yahoo.com> (raw)
Hi,
I've been working through trying to create a virtual
bus. I've
successfuly made it work for a single instance but
wanted to
confirm how to create multiple instances of the
virtual bus. I
believe to do this you have only one instance of your
new
bus_type registered but register multiple instances of
struct
device for it. I just wanted to confirm that was
correct.
Lastly how do you walk over all devices on a bus
instance? I
note bus_for_each_dev but that appears to take a
bus_type
rather than struct device instance, hence I assume it
will return
all devices from all instances. I know I could
compare each
device to see if it is on a certain bus instance but
wondered if
there was a better way?
Regards,
Simon
____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
next reply other threads:[~2007-02-07 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-07 22:15 Simon White [this message]
2007-02-08 5:54 ` Multiple virtual bus instances Greg KH
-- strict thread matches above, loose matches on Subject: below --
2007-02-08 9:23 Simon White
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=883291.79449.qm@web52902.mail.yahoo.com \
--to=sidplay2@yahoo.com \
--cc=linux-kernel@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