在Linux内核中,是asm还是asm-generic? [英] in linux kernel, asm or asm-generic?
本文介绍了在Linux内核中,是asm还是asm-generic?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在mm/memory.c中,它包含一个文件:
in mm/memory.c, it includes one file:
#include <asm/tlb.h>
tlb.h 是 include/asm-generic/tlb.h
或 arch/arm/include/asm/tlb.h
?
推荐答案
如有必要, arch/arm/include/asm
中的头文件将在 include/中包含相应的头文件.通用asm
.
If necessary, header files in arch/arm/include/asm
, will include the corresponding header file in include/asm-generic
.
因此,在这种情况下, tlb.h
是 arch/arm/include/asm/tlb.h
.并在必要时包含 include/asm-generic/tlb.h
.
So in this instance, tlb.h
is arch/arm/include/asm/tlb.h
. And if necessary, it will include include/asm-generic/tlb.h
.
您可以通过运行以下命令来验证这一点:
You can verify this by running the following command:
# The memory.s target creates the assembly file for memory.c
make mm/memory.s
由此,您可以确定正在使用哪个头文件.
From that, you can identify which header file is being used.
这篇关于在Linux内核中,是asm还是asm-generic?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文