Determining which kernel functions are exported

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

 



I have a driver that looks up the entry points for various system call functions (sys_read, sys_close, etc). My code works well enough, but the problem is that the list of functions that are exported varies from kernel to kernel. For instance, sys_lseek() is exported in Suse Enterprise 9, but it's not exported in Red Hat 9.

Is there a way for me to determine whether a particular function is exported, without causing a load failure. If I try to reference sys_lseek() when it's not exported, then insmod will fail.

I know about the query_module() function, but that's not callable from within a driver. I'm looking for a function like that that's callable from within a driver.

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

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