From: selvakumar nagendran <kernelselva@yahoo.com>
To: Valdis.Kletnieks@vt.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re : Re: System calls effect after booting phase ??
Date: Wed, 29 Dec 2004 20:11:23 -0800 (PST) [thread overview]
Message-ID: <20041230041123.10778.qmail@web60606.mail.yahoo.com> (raw)
In-Reply-To: <200412291205.iBTC52RX016345@turing-police.cc.vt.edu>
Thank u for the help,
In the kconfig.tk file, under which section
should we add the line CONFIG_FOO. Will u plz
elaborate the process?
Thanks,
selva
--- Valdis.Kletnieks@vt.edu wrote:
> On Wed, 29 Dec 2004 03:25:10 PST, selvakumar
> nagendran said:
>
> > Now, I want to store them in a table. But I want
> > this operation to be started right after the
> initial
> > booting phase itself part of the loading kernel
> > itself. What should I do to add my module into the
> > already compiled kernel image just like a standard
> > kernel module?
>
> Possibility 1:
> Load them from an initrd image while booting. If
> you're already
> using an initrd, and this is "early enough", you
> just need to put the
> module into the initrd, and make sure the /linuxrc
> or whatever script
> does an insmod for it. This has the advantage of
> working for out-of-tree
> modules.
>
> Possibility 2:
> Build them into the kernel. For in-tree modules,
> this is done with
> a bit of Kconfig/Makefile magic. In the Kconfig
> file, you can define
> a CONFIG_FOO variable, and then in the Makefile, do
> this:
>
> obj-$(CONFIG_FOO) += foo.o
>
> So if CONFIG_FOO is set to 'y' (build into kernel),
> it gets
> added to the obj-y target list and then linked in.
> If it's set to
> 'm' (module) or 'n' (don't build at all), it's added
> to the obj-m or obj-n
> targets, which then aren't linked into the kernel.
>
> Not sure how you'd go about building an out-of-tree
> module into the kernel,
> or if that's even supposed to be possible...
>
> ATTACHMENT part 2 application/pgp-signature
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
next prev parent reply other threads:[~2004-12-30 4:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-29 11:25 selvakumar nagendran
2004-12-29 12:05 ` Valdis.Kletnieks
2004-12-30 4:11 ` selvakumar nagendran [this message]
2005-01-21 4:28 ` selvakumar nagendran
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=20041230041123.10778.qmail@web60606.mail.yahoo.com \
--to=kernelselva@yahoo.com \
--cc=Valdis.Kletnieks@vt.edu \
--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®