Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 19:16:59 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        zazubrik@mail.ru
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Buses, devices and modules
Message-ID:  <20060624.191659.1973602414.imp@bsdimp.com>
In-Reply-To: <922B6543-53D0-4877-9E97-B9ED1CDACFA8@mail.ru>
References:  <922B6543-53D0-4877-9E97-B9ED1CDACFA8@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <922B6543-53D0-4877-9E97-B9ED1CDACFA8@mail.ru>
            Artem Ignatiev <zazubrik@mail.ru> writes:
: When I do 'echo mydev_load="YES" >>/boot/loader.conf', loader loads  
: both mydev.ko and mybus.ko, and mybus.ko attaches properly, but  
: mydev.ko don't attach to anything.
: 
: I suppose this happens because mydev happens to probe for devices  
: before mybus creates them, and fails to find anything to attach to.
: 
: I'm looking for way to trigger the mydev driver to re-probe after the  
: mybus driver actually creates the devices, or may be I'm missing  
: something simple (like priority of module probing)?

re-probing is automatic for all instances of bus FOO when a driver
that has a FOO attachment is loaded.  If the FOO bus driver creates a
child device, then they are responsible for calling
device_probe_and_attach on it.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060624.191659.1973602414.imp>