关于dladdr函数参数的问题
2011-10-14 21:04
696 查看
The dladdr() function queries the dynamic linker for information aboutthe shared object containing the address addr. The information isreturned in the structure
specified by info. The structure containsat least the following members
关于dladdr函数可以知道关于包含了这个地址的共享对象的动态链接的信息,这些信息会记录到info这个结构中,这个结构包含一下几个成员
constchar *dli_fname
The pathname of the shared object containing the address.
这个路径是包含这个共享对象地址的文件路径,以我的理解就是调用这个函数的文件
void*dli_fbase
The base address at which the shared object is mapped into the addressspace of the calling process.
这个地址是这个共享库被映射到调用他的进程的地址空间中的地址
constchar *dli_sname
Thename of the nearest run-time symbol with a value less than or equalto addr. When possible, the symbol name is returned as it wouldappear in C source code.
If no symbol with a suitable value is found,both this field and dli_saddr are set to NULL.
这个是在运行时的符号表中,小于或者等于addr(这个addr是参数传进来的)这个地址的最接近的符号,如果可能的话,那么就返回一个源码中的字符串,如果不行的话那就是使dli_saddr为null
void*dli_saddr
Thevalue of the symbol returned in dli_sname.
返回dli_sanme这个值的地址,通常是函数的地址
Thedladdr() function is available only in dynamically linked programs.
这个dladdr这个函数只对动态链接程序起作用。
specified by info. The structure containsat least the following members
关于dladdr函数可以知道关于包含了这个地址的共享对象的动态链接的信息,这些信息会记录到info这个结构中,这个结构包含一下几个成员
constchar *dli_fname
The pathname of the shared object containing the address.
这个路径是包含这个共享对象地址的文件路径,以我的理解就是调用这个函数的文件
void*dli_fbase
The base address at which the shared object is mapped into the addressspace of the calling process.
这个地址是这个共享库被映射到调用他的进程的地址空间中的地址
constchar *dli_sname
Thename of the nearest run-time symbol with a value less than or equalto addr. When possible, the symbol name is returned as it wouldappear in C source code.
If no symbol with a suitable value is found,both this field and dli_saddr are set to NULL.
这个是在运行时的符号表中,小于或者等于addr(这个addr是参数传进来的)这个地址的最接近的符号,如果可能的话,那么就返回一个源码中的字符串,如果不行的话那就是使dli_saddr为null
void*dli_saddr
Thevalue of the symbol returned in dli_sname.
返回dli_sanme这个值的地址,通常是函数的地址
Thedladdr() function is available only in dynamically linked programs.
这个dladdr这个函数只对动态链接程序起作用。
相关文章推荐
- 关于C51的中断函数要注意的几个问题 -----中断中调用函数参数错误问题
- 关于Java函数传参以及参数在函数内部改变的问题——JAVA值传递与引用最浅显的说明!
- 关于python函数传参数问题 , 不管什么类型都是传引用
- C++中关于二维数组作为函数参数传递的问题
- 关于C++当中的函数作为另一个函数的参数之小问题
- 关于带返回值委托函数和委托函数使用引用参数的问题
- python-关于函数间参数传递问题(注意理解,很容易混淆)
- 关于用函数指针参数申请动态内存的问题
- 关于二维数组当做函数参数的问题
- 关于a标签中js函数function(va1,va2)方法传递中文参数报错不执行的问题解答
- 关于未知dll函数参数的获取问题!
- 关于指针作为函数参数传递的理解,对比普通变量作为函数参数的需注意点,其实就是行参和实参的问题。
- 关于QObject::connect函数参数问题
- C++中关于将fstream对象作为函数参数传递相关问题说明
- 关于C#函数对象参数传递的问题
- 关于 Numpy 数组作为函数参数的一个小问题
- 关于js函数的参数传递问题
- C++关于函数声明和定义中参数赋值为0调用问题演示
- 关于二维数组作为参数传递给函数的问题
- 关于C#函数对象参数传递的问题