On Tue, Aug 22, 2006 at 04:05:30PM +0300, Constantine Kousoulos wrote: > Ok. So there are as many device_xxx() routines as the types of > drivers that mach supports. > > How does mach choose the correct device_xxx() routine from the > many available? Let's say that mach needs to acces the floppy > drive. How does it choose the correct device_open() from the > available device_open() routines each driver supplies?
It simply tries all registered drivers until one of them returns something else than D_NO_SUCH_DEVICE. The driver knows what device is used by its name, e.g. the network linux glue code will know that "console" isn't an ethernet device, but "eth0" is one. -- Richard Braun
signature.asc
Description: Digital signature
_______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd