Re: (Semi-random) thoughts on device tree structure and devfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthias Drochner
Date: Thursday, March 11, 2010 - 1:45 pm

plunky@rya-online.net said:

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
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
(Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sun Mar 7, 2:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Sun Mar 7, 3:12 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:31 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:41 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Mon Mar 8, 9:59 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:25 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:48 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 9:35 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 9:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 10:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 11:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 11:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 12:01 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:23 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 12:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Tue Mar 9, 12:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:55 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 2:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 5:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:06 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:36 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:39 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 6:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:50 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 7:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Wed Mar 10, 1:53 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Thu Mar 11, 7:32 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Thu Mar 11, 10:18 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:37 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:42 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Quentin Garnier, (Thu Mar 11, 11:47 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eduardo Horvath, (Thu Mar 11, 12:06 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 1:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 2:24 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 1:20 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 4:37 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 10:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:00 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:08 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:11 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:16 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:25 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:33 pm)