On Sat, 26 Feb 2000, Satya wrote:

> Actually, I meant how do I find out if printer support is enabled :)
> 
> I'd rather not recompile the whole kernel. Will this just compile the
> printer modules?

It doesn't matter whether you have the modules ready.  What matters is
whether your kernel is actually looking for them.  If your kernel has not
been compiled with printer support, then it will not look for the printer
module when it needs it and simply return an error.

Understand it this way:

       -------------
      |  Kernel     |
       -  --  ---  -
        ||  ||   ||      Stubs that will connect to modules when required.
       NFS  MFM  Printer

       ---  ---   ----
       NFS  MFM   Prin        Modules are here.

When your kernel requires a module, two things need to be present:

  1. The stub for the module to connect to
  2. The module that will connect to the stub.

Each stub can take only one module and that is the module it was compiled
to accept.  So a printer stub will take only a printer module and nothing
else.

What kerneld does, is load the module into memory, rewrite the entry point
of all functions in the module in the kernel code that requires it and
returns control to the kernel.

When the module is to be removed from memory, the opposite happens, and
all addresses are changed to code that will call kerneld.

I hope I have put this forward correctly and I hope it explains things
correctly.

Philip

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to