mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: selvakumar nagendran <kernelselva@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Help Regarding putting my module into the kernel
Date: Sun, 23 Jan 2005 20:22:41 -0800 (PST)	[thread overview]
Message-ID: <20050124042241.44427.qmail@web60606.mail.yahoo.com> (raw)

Hello linux-experts,
     I am intercepting a few syscalls in kernel
2.4.28. My module name is rsched.c. To put it in the
kernel, I created a new subdirectory with the name
rsched under /linux-2.4.28 source directory. I created
the Makefile for it. I included the rsched
subdirectory in the list of  kernel subdirectories in
the toplevel Makefile as
  SUDIRS := (all-available subdirectories) rsched
     But when I build the kernel depmod showed the
following error:

  depmod: cannot read ELF header from
/lib/modules/2.4.28-rsched/kernel/rsched/rsched.o

   How can I correct it and add my module into the
kernel?
  Can anyone help me regarding this? I have also
attached the Makefile here.

Thanks,
selva

Makefile
--------
O_TARGET := rsched.o


obj-m   := $(O_TARGET)

include $(TOPDIR)/Rules.make
----------

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

                 reply	other threads:[~2005-01-24  4:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20050124042241.44427.qmail@web60606.mail.yahoo.com \
    --to=kernelselva@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®