On Thu, Mar 11, 2010 at 12:13 AM, David Young <dyoung@pobox.com> wrote:
True.
OK, you want to match device by ID. Like:
fxp* macaddr xx:xx:xx:xx:xx:xx
That might make sense.
What doesn't make sense there is to *fix* device unit number. Device
unit number will be no longer used after devfs, because we lookup
struct device by either topologically or ID.
"A library function" is inacceptable to me. This is a substantial
design of device(9) API. This should be a *primitive*.
Device probes, configures, and extracts properties from the real
device. Just before leaving attach(), it *puts* its ID in a
well-known place so that device(9) can lookup these IDs later.
Anything more than this is inacceptable to me. autoconf(9) is already
too complex. I got *huge* frustration to understand it, that's why
I'm sending lots of Engrish mails now.
In what sense?
As I explained in the first post, pseudo device is strict definition;
it has no parent in terms of physiical topology. It may have parents
in terms of components. I've very carefully investigated those. I
strictly defferenciate them. Please re-read the first post in this
thread.
True.
I wonder if we can assume serial numbers are unique.
And again, device unit is no more.
Masao