Linux Kernel 之 symbol
来源:互联网 发布:青苹软件 编辑:程序博客网 时间:2024/05/22 14:46
Linux symbol export method:
[1] If we want export the symbol in a module, just use the EXPORT_SYMBOL(xxxx) in the C or H file.
And compile the module by adding the compile flag -DEXPORT_SYMTAB.
Then we can use the xxxx in the other module.
[2] If we want export some symbol in Kernel that is not in a module such as xxxx in the /arch/ppc/fec.c.
Firstly, define the xxxx in the fec.c;
Secondly, make a new file which contain the “extern” define the xxxx(for example, extern int xxxx);
Lastly, in the ppc_ksyms.c we includes the new file, and add the EXPORT_SYMBOL(xxxx).
Then we can use the xxxx.
参考:http://blog.chinaunix.net/uid-10747583-id-2920908.html
0 0
- Linux Kernel 之 symbol
- Linux文件系统之hard link&symbol link
- Linux kernel之内核定时器
- Linux kernel之内核定时器
- linux kernel 学习之进程
- Linux kernel 学习之中断
- linux kernel 学习之进程
- linux kernel驱动之module_init
- linux kernel 之 工作队列
- linux kernel debug 之 CallTrace
- Kernel Compilation& Avoiding ‘Unresolved Symbol’
- Linux Kernel之spin_lock之ARM实现
- Linux Kernel之spin_lock之ARM64实现
- Linux Kernel之spin_lock之ARM64实现
- Linux kernel遨游之起始篇
- Arm linux kernel 启动之start_kernel (一)
- RAC之节点Linux kernel监测
- 初探Linux kernel之进程相关一
- Android Studio插件整理
- 17.1.1.5 Creating a Data Snapshot Using mysqldump 创建一个快照使用mysqldump:
- 在Centos7上部署安装RobotFramework
- 字符串查找
- hdu1495 非常可乐--BFS
- Linux Kernel 之 symbol
- Linux学习之CentOS--虚拟机下的CentOS如何上网----NAT方法
- Android: 使用JitPack发布你的Github开源库
- HDU5319 Painter
- Jdbc-基本连接
- Servlet总结
- 喜欢的橘子
- 初学安卓路之初识ListView
- android uses-permission.权限列表