From: vikram186@gmail.com (Vikram Narayanan)
To: kernelnewbies@lists.kernelnewbies.org
Subject: mm_init() functions in kernel code
Date: Wed, 18 May 2011 08:06:05 +0530 [thread overview]
Message-ID: <BANLkTimuD_PLM5CyM70BNXkV33E-09iRqg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikc0ZP6nA4WzSETD1D4iddfU8LKEg@mail.gmail.com>
On Wed, May 18, 2011 at 7:49 AM, Greg <groglein@gmail.com> wrote:
> 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.
Thanks. (I haven't noticed the static there ;) )
-
Thanks,
Vikram
prev parent reply other threads:[~2011-05-18 2:36 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
2011-05-18 2:36 ` Vikram Narayanan [this message]
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=BANLkTimuD_PLM5CyM70BNXkV33E-09iRqg@mail.gmail.com \
--to=vikram186@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).