“EXPORT_SYMBOL"是什么意思?在 Linux 内核代码中? [英] What's meaning of "EXPORT_SYMBOL" in Linux kernel code?

查看:22
本文介绍了“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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆