>  #if defined(CONFIG_FOO) || (defined(MODULE) && 
defined(CONFIG_FOO_MODULE))
>
>is a good way to express that driver bar can use functionality of driver 
>foo if it's available.

We need a way for a module to dynamically link itself, to whatever other 
modules it wants to use, and to be able to do that conditionally based on 
whether those other modules are loaded at the time it wants to use them.

Then we would not only get rid of one of the remaining distinctions 
between binding a module into the base kernel and loading it dynamically, 
but also this possibly last excuse for defined(MODULE).

As far as I know, we still don't have any kind of a generic registration 
service like this in the kernel.  I've had to resort to faking ioctls and 
proc file reads inside the kernel in order to get an address from another 
dynamically loaded module.

--
Bryan Henderson                          IBM Almaden Research Center
San Jose CA                              Filesystems

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to