Re: Buses, devices and modules



In message: <922B6543-53D0-4877-9E97-B9ED1CDACFA8@xxxxxxx>
Artem Ignatiev <zazubrik@xxxxxxx> 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
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: MOUHID attaching problem
    ... driver passes AttachDevice function in CDevice.cpp. ... UHCD driver DLL attach ... InitializeUHCI ++ ... CHub(Root tier 0)::AllocateDeviceArray - attempting to allocate 1 devices ...
    (microsoft.public.windowsce.platbuilder)
  • [PATCH 2.6.10-rc1 0/4] driver-model: manual device attach
    ... These are the manual device attach patches I was talking about in the ... dev.autoattach is read/write integer sysctl node which controls ... driver-model's behavior regarding device - driver association. ...
    (Linux-Kernel)
  • Problems installing X25 9.1 on Solaris 8
    ... Driver successfully added to system but failed to attach ... Warning: Driver successfully added to system but failed to attach ... Installation of was successful. ...
    (SunManagers)
  • HP-UX driver attach routine not called, ioscan does not help
    ... An HP-UX 11.0 DLKM PCI interface device driver I have written does not ... attach() is still not called. ... the loadand attachroutines that I am using to track down the ...
    (comp.sys.hp.hpux)
  • Re: Docstrings for class attributes
    ... FOO = 1 ... BAR = 2 ... Except that I would like to attach a docstring text to the constants, ...
    (comp.lang.python)