<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY>
<DIV>
<DIV style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Thank you very much for replying.<BR><BR>I actually notice that there are many static functions in that file. However, some of them show up in symbol table, the rest do not. So what you are saying is that there is no connection between being a static function and showing up in kernel symbol table. Then what causes the difference appearing in symbol table or not? In other word, if i add a new static function and like it in kallsyms, what should I do?<BR><BR>Thanks,<BR>Ji</DIV></DIV>
<DIV dir=ltr>
<HR>
<SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">From: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:Valdis.Kletnieks@vt.edu">Valdis.Kletnieks@vt.edu</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Sent: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">6/12/2014 8:47 PM</SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">To: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:lijimlee@gmail.com">Ji Li</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Cc: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Subject: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Re: why a static function is in kernel symbol table</SPAN><BR><BR></DIV>On Thu, 12 Jun 2014 16:23:58 -0700, Ji Li said:<BR><BR>> I happened to find that a static function show up in kernel symbol table:<BR><BR>> Could anyone kindly cast some light?<BR><BR>Hint: 'static' prevents code in other compilation units (basically, other .c<BR>files) from referencing it directly (though they can still access it via a<BR>function pointer variable or other similar tricks). That does *not* mean that<BR>other code in the *same* compilation unit can't reference the static function<BR>in a way that requires a symbol table entry...<BR><BR></BODY></HTML>