Re: Basic question..

Richard B. Johnson (root@chaos.analogic.com)
Wed, 1 Aug 2001 16:55:25 -0400 (EDT)


On Wed, 1 Aug 2001, Raghava Raju wrote:

>
>
> Hi
>
> I am new to kernel programming. I have
> just written a module consisting of init and
> cleanup
> functions. I call init function of the module in
> kernel initialization function. So when system
> comes up, it shows that it entered module init
> function(printk in "init" print some string), but
> when I do lsmod it is not there in list of
> modules. But if I do insmod module, the module is
> listed in lsmod output. So is it that calling init
> module and insmod are not equivalent?
>
> Thank You
> Raghava.

If it's built into the kernel (a driver), it's not a module.
It won't show when executing `lsmod`. It also can't be removed.
Only drivers inserted as modules show with `lsmod`.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/