Linux Kernel - init_module & query_module !

G Jalaja Devi (jalaja@teil.soft.net)
Fri, 5 Mar 1999 12:18:12 +0530 (IST)


I want to know the answers for the follg questions:

1. When create_module(name, size);
How will I know the *size* of the module?
I read that this function reserves the kernel memory that will be
needed to hold the module. And returns the address.
I want to know whether the module will also be loaded?
(bcoz, when I say lsmod, it shows my module name, and says
*uninitialized*)

2. In init_module(name, struct module *image)
How can I fill the struct module? How will i know the function
pointers, ie int (*init)(void), void (*cleanup)(void);

(Is that query_module?)

3. When I use query_module( ), it is giving me compilation errors,
though I have included the module.h

-Jalaja

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