From: groglein@gmail.com (Greg)
To: kernelnewbies@lists.kernelnewbies.org
Subject: mm_init() functions in kernel code
Date: Tue, 17 May 2011 19:19:55 -0700 [thread overview]
Message-ID: <BANLkTikc0ZP6nA4WzSETD1D4iddfU8LKEg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimWRZKp+AwJF4-wWK2-9HAsj-3Exg@mail.gmail.com>
On Tue, May 17, 2011 at 6:43 PM, Vikram Narayanan <vikram186@gmail.com> wrote:
> Hi,
>
> I saw two mm_init functions in the kernel source code.
> 1) init/main.c ? ?(http://lxr.linux.no/#linux+v2.6.38/init/main.c#L530)
> 2) kernel/fork.c (http://lxr.linux.no/#linux+v2.6.38/kernel/fork.c#L482)
>
> Are the above functions go inside a single binary? How this doesn't
> produce a redefinition error?
>
> Thanks,
> Vikram
Both of these define mm_init as static so they aren't visible outside
the source file that has them. Plus they don't use the EXPORT_SYMBOL
macro to indicate that it can be called from elsewhere in the kernel.
There is another mm_init function in drivers/block/umem.c as well
which is also static.
Cheers,
Greg
next prev parent reply other threads:[~2011-05-18 2:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 1:43 mm_init() functions in kernel code Vikram Narayanan
2011-05-18 2:19 ` Greg [this message]
2011-05-18 2:36 ` Vikram Narayanan
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=BANLkTikc0ZP6nA4WzSETD1D4iddfU8LKEg@mail.gmail.com \
--to=groglein@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).