Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: usb device modifying state of another driver on plug/unplug event
blymn%internode.on.net@localhost (Brett Lymn) writes:
>"Needs Work(tm)" ... at the moment it looks very disk device focuessed:
># drvctl -l
>root mainbus0
>root dk0
>root dk1
>root dk2
>root dk3
>root dk4
>root dk5
>root dk6
>root dk7
>root dk8
>root dk9
>root dk10
>root dk11
>root swcrypto0
>root cgd0
>root vnd0
You missed to list all the things hanging of mainbus. You see the
disk devices because they all attach at the root of the tree.
Here is an example what devpubd sees.
# Initial event when devpubd is started
device-attach mainbus0 dk0 dk1 dk2 dk3 dk4 dk5 swcrypto0 iscsi0 vnd0 vnd1 vnd2 vnd3 ioapic0 cpu0 cpu1 cpu2 cpu3 acpi0 pci0 acpicpu0 coretemp0 acpicpu1 acpicpu2 coretemp1 acpicpu3 acpiecdt0 hpet0 acpiec0 acpilid0 acpibut0 acpivga0 attimer1 pcppi1 pckbc1 pckbc2 acpibat0 acpiacad0 thinkpad0 acpiwmi0 acpiwmi1 acpitz0 acpiout0 acpiout1 acpiout2 acpiout3 acpiout4 acpiout5 acpiout6 acpiout7 spkr0 midi0 sysbeep0 pckbd0 pms0 wskbd0 wsmouse0 pchb0 i915drmkms0 wm0 ehci0 hdaudio0 ppb0 ppb1 ppb2 ppb3 ehci1 ichlpcib0 ahcisata0 ichsmb0 intelfb0 wsdisplay0 ihphy0 usb0 uhub1 uhub2 ubt0 uvideo0 bthub0 video0 hdafg0 hdafg1 audio0 spkr1 pci1 pci2 iwn0 pci3 pci4 sdhc0 sdmmc0 usb1 uhub0 uhub3 umodem0 umodem1 umodem2 umodem3 ucom0 ucom1 ucom2 ucom3 tco0 isa0 tpm0 atabus0 atabus1 atabus2 atabus3 wd0 atapibus0 cd0 iic0
# Hotplug of a USB ethernet adapter
device-attach cdce0
device-detach cdce0
# Or a USB mouse
device-attach uhidev0
device-attach ums0
device-attach wsmouse1
device-detach wsmouse1
device-detach ums0
device-detach uhidev0
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index