The PCMCIA sequence Alan posted is similar to
what we can do today, no kernel changes, with USB
just by watching usbdevfs. The work to be done
doesn't seem primarily kernel mode ...
> Insertion event
> Umm.. this is a CyQ've Ethernet blah blah
> Post to user space
> pcmcia daemon
yep, notice devfs changed ... though I think a
short message to userspace (under 32 bytes) could
pass all the relevant information.
> Scan in /etc/pcmcia
> Thats an ne2000 driver job
> Load ne2000 driver if not loaded
> Tell pcmcia to plug that card and driver together
Today, if it's loaded it _should_ have bound to
the driver already. We do need to be able to check
if they really did, without parsing that textfile.
> Plugged together
> pcmcia daemon builds a descriptor set
> Run the script for this type of object
The USB analogue being to dispatch based on
interface (etc) or product/vendor ids.
> Matches eth0 and mac
> Run that script item
> ifconfig blah
> route add foo
> done
Hmm, this should be generic network housekeeping.
I remember a while back that some distributions
did it a bit differently (how to plug into the
various admin tools).
I suggest the USB team reuse something for that!!
- Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]