Re: Which types of functions are exported by kernel source?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.

Only functions that are expected to be used by modules are exported. asmlinkage has nothing to do with it.


--Swapnil

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux