one can do so, but...
you would set this in stone.
It would be easy to extend the current attach_pseudo() function by
an "attach args" argument. (An interface attribute should be passed
too for consistency because this is used as a qualifier for the
opaque "attach args" elsewhere.)
I think it hasn't been done just because noone needed it.
For the future, I'd think that the currently unstructured "attach args"
needs to be split into 3 parts:
1. Information about the device type, what is needed by child driver's
"match" function to select the right driver. This is qualified
by the interface attribute.
2. If the hardware supports it, information about the individual instance,
as Ethernet HW address, or UUID for disk partitions, to allow drivers
to recognize a device after temporary disconnection. This is qualified
by the child device type (which can have multiple attachments).
3. everything else: handles, cookies, whatever needed for parent-child
communication
For (1), it would make sense to make it a proplist, and pass it to
drvctl, along with locator information, to support on-demand loading
of drivers.
I think it makes sense, because it allows to limit use of the
interface-attribute-less "root" to a minimum. There is a reason
that many/most ports use just one "mainbus" at root.
best regards
Matthias
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------