How to determine linkage of a function at run-time?

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

 



Hello,
	I wish to call a kernel function (may be actually in the
kernel, or may be in a module) through a function pointer.

I would think that, when you call a function using a function pointer, gcc
will assume that all arguments get passed on the stack (asmlinkage) since
it can't know anything about the function's actual linkage.

So, I need a way to find out (at run-time), for a given function, whether
it was compiled with asmlinkage so that I will know I can safely call it
in this way.

Is this already possible, or will I have to modify the asmlinkage macro to
save this information somewhere?

Thanks for your help.
Best wishes,
		Bill.
-- 
Dr. William Bland.                          Computer Programmer, UK.
www.abstractnonsense.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