[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <883291.79449.qm@web52902.mail.yahoo.com>
Date: Wed, 7 Feb 2007 14:15:08 -0800 (PST)
From: Simon White <sidplay2@...oo.com>
To: linux-kernel@...r.kernel.org
Subject: Multiple virtual bus instances
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists