Re: hi frnd pls guide me regarding how to compile in linux2.10.18




Jens Thoms Toerring wrote:
sathiya <sathiyadev@xxxxxxxxx> wrote:
im sathiyadev.t, new to kernel programming. so any one of u
pls clarify my issue.
that i want to compile a module into the linux kernel in
version 2.10.18.

I guess you mean 2.6.18 - at least that's what I would assume from
the next sentence:

actually im working with cc -I /usr/src/linux-
2.6.18/ include/ .c its not working.so pls who know about it
pls help me...

You don't invoke the compiler directly, you use the kernels build
system with a Makefile. How that looks like depends on circumstances.
You better first read chapter 2 of "Linux Device Drivers", 3rd edition,
by Corbet, Rubini and Kroah-Hartmann, O'Reilly, ISBN 0-596-00590-3;
which is also available as a PDF at

http://lwn.net/Kernel/LDD3/
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de


thks for ur reply, after reading the book. i still have some doute to
clariffy. wheather i have to create Makefile.into ur module file.

-sathiyadev.

.



Relevant Pages

  • Re: hi frnd pls guide me regarding how to compile in linux2.10.18
    ... sathiya wrote: ... pls clarify my issue. ... that i want to compile a module into the linux kernel in ...
    (comp.os.linux.development.system)
  • hi frnd pls guide me regarding how to compile in linux2.10.18
    ... im sathiyadev.t, new to kernel programming. ... pls clarify my issue. ... that i want to compile a module into the linux kernel in ...
    (comp.os.linux.development.system)
  • Re: Linux Kernel Source--Unquestionably Undefined Behavior
    ... According to the C Standard: ... The behavior is well defined in the implemention used to compile ... The Linux Kernel Source, as a result, commits undefined behavior. ...
    (comp.lang.c)
  • Kernel compilation error
    ... Today I was trying to compile the Linux kernel 2.6.12 after applying ... include/linux/key.h:234: internal compiler error: Segmentation fault ... Please submit a full bug report, ...
    (comp.os.linux.development.system)
  • Re: kernel module
    ... > First of all I would apologize in case this the wrong group for ... > posting this article. ... > I'm trying to write small Linux kernel modules.I compile them with the ... That's not how you compile a kernel module, ...
    (comp.os.linux.development.system)