lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: pci: add to global list before sysfs?
From
Date

On Sat, 2008-04-05 at 18:55 +0200, Pierre Ossman wrote:
> > Why not just create a thread in your driver, or timer, and sleep
> until
> > you see the other devices? If after a certian time you never do,
> then
> > bail out.
> >
> > That should work properly for you for both cases (startup and
> loading
> > later.)
> >

You don't need a timer. You can just use the notifier mechanism I added
a while ago that should call you on device addition and removal on the
bus type you are interested in.

Ben.




\
 
 \ /
  Last update: 2008-04-13 23:39    [W:0.096 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site