Re: [LIP] Kernel symbols

<ripley-gGZFqZ9RcmRmR6Xm/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Portal Agory S.A.
Message-ID <[email protected]>
Hi :-)

I've got a good new
You don't have to kompile new kernel :-)

You can write a module, compile it like a program and simply upload
it to the kernel /on disload whenether you like/
- and there's a special procedure to do that.

First - the code:
There're 2 obligatory headers, which you have to include:
<linux/modules.h>
<linux/kernel.h>

And your main should be not main() but init_module() {};

And of course there're special equalities of functions using with
normal C programming
for example: printf() is printk()

You compile the kernel module with gcc but using some obligatory flags.

follow this link
http://www.tldp.org/LDP/lkmpg/lkmpg.pdf - it's a good guide where
you will easily the details

HopeToHelp
Asia Sledzik


------ Wiadomość oryginalna ------
Od:    suresh kumar <suresh_vin-/iAzse42w/[email protected]>
Data:  2004-01-23 05:47
Temat: [LIP] Kernel symbols

:-> Hi,
:-> While creating a module, what kernel functions can be used. If I
use some
kernel functions directly, I am getting unresolved symbols. One
thing which I
refer is ksyms, but a kernel function which is used need not be
xported in
ksyms, as "ip_route_input" which is not present in ksyms but I still
didn't
get unresolved symbole linking error. So is there any way, I can
know which
functions I can use directly in the module code. Or in my case
should I only
go with compiling my module along with the kernel code and build a new
kernel. Kindly help me ASAP, I am stuck here.
:-> Suresh
:-> V.V Suresh Kumar
:-> 
:-> 
:-> --
:-> ______________________________________________
:-> IndiaInfo Mail - the free e-mail service with a difference!
www.indiainfo.com
:-> Check out our value-added Premium features, such as an extra
20MB for mail
storage, POP3, e-mail forwarding, and ads-free mailboxes!
:-> 
:-> Powered by Outblaze
:-> 
:-> 
:-> -------------------------------------------------------
:-> The SF.Net email is sponsored by EclipseCon 2004
:-> Premiere Conference on Open Tools Development and Integration
:-> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
:-> http://www.eclipsecon.org/osdn
:-> _______________________________________________
:-> linux-india-programmers mailing list
:-> linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
:-> https://lists.sourceforge.net/lists/listinfo/linux-india-programmers
:-> 
:-> 






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.