From: rinku rathore <rinku_ques@yahoo.com>
To: Dirk Bergmann <D.Bergmann@gom.com>, gcc <gcc@gcc.gnu.org>,
gcc-help <gcc-help@gcc.gnu.org!>,
Eljay Love-Jensen <eljay@adobe.com>,
lrtaylor <lrtaylor@micron.com>,
Majordomo <majordomo@vger.kernel.org>,
Matthias Stein <M.Stein@gom.com>,
Zack Weinberg <zack@codesourcery.com>
Subject: kernel modules
Date: Tue, 07 Sep 2004 11:30:00 -0000 [thread overview]
Message-ID: <20040907113019.40163.qmail@web53008.mail.yahoo.com> (raw)
Hello,
I am trying to build a kernel module that is:-
/*module name is "hello.c"*/
#include <linux/module.h>// Needed by all
modules
#include <linux/kernel.h>
int init_module(void)
{
printk("<1>Hello world 1.\n");
// A non 0 return means init_module failed;
module can't be loaded.
return 0;
}
void cleanup_module(void)
{
printk("<1>Goodbye world 1.\n");
}
And then compiling it with the command:-
gcc -c hello.c
it get successfully compiled and then I am trying to
insert it with command
insmod ./hello.o
An error as followed is arived how can I remove this
error:-
error: ./hell.o: couldn't find the kernel version the
module was compiled for
Thanx Rinku Rathore
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
next reply other threads:[~2004-09-07 11:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 11:30 rinku rathore [this message]
2004-09-07 15:07 ` Randy.Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040907113019.40163.qmail@web53008.mail.yahoo.com \
--to=rinku_ques@yahoo.com \
--cc=D.Bergmann@gom.com \
--cc=M.Stein@gom.com \
--cc=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org! \
--cc=gcc@gcc.gnu.org \
--cc=lrtaylor@micron.com \
--cc=majordomo@vger.kernel.org \
--cc=zack@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).