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

Posted by Daniel Silveira on Stack Overflow See other posts from Stack Overflow or by Daniel Silveira
Published on 2008-12-08T22:18:17Z Indexed on 2010/03/12 8:37 UTC
Read the original article Hit count: 208

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about function-pointers