Alex Rivera | Logout

How to get function's name from function's pointer in Linux kernel?

Asked 2008-12-08T22:18:17.897
67

How to get function's name from function's pointer in C?

Edit: The real case is: I'm writing a linux kernel module and I'm calling kernel functions. Some of these functions are pointers and I want to inspect the code of that function in the kernel source. But I don't know which function it is pointing to. I thought it could be done because, when the system fails (kernel panic) it prints out in the screen the current callstack with function's names. But, I guess I was wrong... am I?

Edit
Report

1 Answer

-6

You wouldn't know how you look like without a reflecting mirror. You'll have to use a reflection-capable language like C#.

answered 2008-12-08T23:10:23.267

Your Answer