From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: why a static function is in kernel symbol table
Date: Thu, 12 Jun 2014 23:47:09 -0400 [thread overview]
Message-ID: <10156.1402631229@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Thu, 12 Jun 2014 16:23:58 -0700." <CAJdgut8fntC4Y7j0NVWYDatpaxyDbdTQGtvRjY_LerxY-YiAXQ@mail.gmail.com>
On Thu, 12 Jun 2014 16:23:58 -0700, Ji Li said:
> I happened to find that a static function show up in kernel symbol table:
> Could anyone kindly cast some light?
Hint: 'static' prevents code in other compilation units (basically, other .c
files) from referencing it directly (though they can still access it via a
function pointer variable or other similar tricks). That does *not* mean that
other code in the *same* compilation unit can't reference the static function
in a way that requires a symbol table entry...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140612/50516a03/attachment.bin
next prev parent reply other threads:[~2014-06-13 3:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 23:23 why a static function is in kernel symbol table Ji Li
2014-06-13 3:47 ` Valdis.Kletnieks at vt.edu [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-06-13 7:10 Ji
2014-06-14 2:54 ` Ji Li
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=10156.1402631229@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--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).