public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Which types of functions are exported by kernel source?
@ 2005-02-22  7:38 linux lover
  2005-02-22  8:01 ` Inguva
  0 siblings, 1 reply; 2+ messages in thread
From: linux lover @ 2005-02-22  7:38 UTC (permalink / raw)
  To: linux-kernel, lkg india

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 524 bytes --]

Hello,
     While browsing linux source code what i found
that if function is defined as 
asmlinkage long sys_open(const char * filename, int
flags, int mode)
then its not exported to kenrel and thus not seen in
/proc/ksyms. But if function in kernel source is not
defined with asmlinkage then it is exported to kernel
and seen in /proc/ksyms.
      Is that correct??
regards,
linux_lover.


		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Which types of functions are exported by kernel source?
  2005-02-22  7:38 Which types of functions are exported by kernel source? linux lover
@ 2005-02-22  8:01 ` Inguva
  0 siblings, 0 replies; 2+ messages in thread
From: Inguva @ 2005-02-22  8:01 UTC (permalink / raw)
  To: linux lover; +Cc: linux-kernel, lkg india


>/proc/ksyms. But if function in kernel source is not
>defined with asmlinkage then it is exported to kernel
>and seen in /proc/ksyms.
>      Is that correct??
>  
>
I dont think so. Only symbols explicitly exported via EXPORT_SYMBOL
macro are exported. asmlinkage keyword has nothing to do with symbol
exporting.

Regards,
Inguva

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-22  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-22  7:38 Which types of functions are exported by kernel source? linux lover
2005-02-22  8:01 ` Inguva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox