EXPORT_SYMBOL
时间: 2023-08-15 07:09:35 浏览: 120
EXPORT_SYMBOL宏的作用是将符号导出到内核符号表,使得其他模块或内核可以使用该符号。在Linux内核中,通过使用EXPORT_SYMBOL宏可以将非静态函数和变量导出给其他模块使用。而EXPORT_SYMBOL_GPL宏则仅将符号导出给GPL许可的模块。在Linux 2.6版本之后,由于安全考虑,默认不再自动导出所有符号,需要使用EXPORT_SYMBOL宏来标记需要导出的符号。这样其他模块才能够使用这些导出的符号。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Linux 模块导出符号 EXPORT_SYMBOL](https://blog.csdn.net/luckydarcy/article/details/112904819)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Linux EXPORT_SYMBOL宏详解](https://blog.csdn.net/weixin_45030965/article/details/126658984)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文