"EXPORT_SYMBOL"是什么意思?在Linux内核代码中? [英] What's meaning of "EXPORT_SYMBOL" in Linux kernel code?
本文介绍了"EXPORT_SYMBOL"是什么意思?在Linux内核代码中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
来自此处
48 struct snd_card *snd_cards[SNDRV_CARDS];
49 EXPORT_SYMBOL(snd_cards);
我没有得到它的含义以及为什么使用它.我试图搜索它,但不了解其含义.
I am not getting whats the meaning of it and why that is used. I tried to search about it but not understanding the meaning of that.
推荐答案
它使动态加载的模块可以访问符号(前提是所述模块添加了extern
声明).
It makes a symbol accessible to dynamically loaded modules (provided that said modules add an extern
declaration).
不久前,有人问如何使用它.
这篇关于"EXPORT_SYMBOL"是什么意思?在Linux内核代码中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文