[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get_module_symbol missing in 2.4?
** Reply to message from Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL> on Mon, 7 May
2001 20:06:39 +0200
> Ehm, you're right, it's not there yet. The documentation is in
> kernel/module.c, but it's not yet included in the kernel API book. Try
> this patch (against linux-2.4.4, but will apply to other kernel
> versions as well) and type "make {psdocs|pdfdocs|htmldocs}" to generate
> the documentation.
If by documentation you mean the paltry comments that prefix each function,
then I don't need to compile anything because I can just read them (not that
it'll help any). However, after fixing/applying your patch to 2.4.2, I got this
error during the build:
working on ../parportbook.sgml
about to copy cascading stylesheet and admon graphics to temp dir
about to rename temporary directory to parportbook
if [ ! -z " parport-share.jpeg parport-multi.jpeg parport-structure.jpeg" ];
then cp parport-share.jpeg parport-multi.jpeg parport-structure.jpeg
parportbook; fi
cp: parport-share.jpeg: No such file or directory
cp: parport-multi.jpeg: No such file or directory
cp: parport-structure.jpeg: No such file or directory
make[1]: *** [parportbook] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.2/Documentation/DocBook'
make: *** [htmldocs] Error 2
parport-share.jpeg doesn't exist anywhere.
My question is this: I was able to use get_module_symbol in 2.2 to gind the
address of various data structures in the kernel. With the inter_module stuff,
it appears that I can only use those functions for addresses that are
specifically "exported" with inter_module_register. If so, then I'm screwed
because the data structures I want are not exported by inter_module_register.
According to a scan of the 2.4.2 source code, it's only used by about two or
three modules.
--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/