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

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

 



Hello XLOV,

      Its better to use filp_open in the file operation structure to
implement the functionality thats the best way(as mr. gopu had said) . Those
are static functions used by kernel which will be linked when you insert the
module .. So no problem .

shyam
shyamjithe.c.s
Networking & Communications Group
Tata Elxsi Ltd.
(Ph)   +91-471-2527214
(Fax) +91-471-2527215
____________________________________

----- Original Message ----- From: "linux lover" <linux_lover2004@xxxxxxxxx>
To: <kernelnewbies@xxxxxxxxxxxx>
Cc: <gopu.bhaskar@xxxxxxxxx>; <shyamjithe@xxxxxxxxxxxxxxx>; <srinivasg@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 22, 2005 11:59 AM
Subject: Which types of functions are exported by kernel source?



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!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
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