Skip to contentSkip to conversation

Which types of functions are exported by kernel source?

DISCUSSION linux lover 2 participants 2 messages Feb 22, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines

/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