bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Mach glue code update


From: Richard Braun
Subject: Re: GNU Mach glue code update
Date: Tue, 22 Aug 2006 15:37:11 +0200
User-agent: Mutt/1.5.9i

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

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]