lkml.org 
[lkml]   [2007]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectMultiple 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-07 23:25    [W:0.042 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site