Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 mm/memory.c 中,它包含一个文件:
#include <asm/tlb.h>
tlb.h是include/asm-generic/tlb.h还是arch/arm/include/asm/tlb.h?_
include/asm-generic/tlb.h
arch/arm/include/asm/tlb.h
如有必要, 中的头文件arch/arm/include/asm将包含 中的相应头文件include/asm-generic。
arch/arm/include/asm
include/asm-generic
所以在这种情况下,tlb.h是arch/arm/include/asm/tlb.h。如有必要,它将包括include/asm-generic/tlb.h.
tlb.h
您可以通过运行以下命令来验证这一点:
# The memory.s target creates the assembly file for memory.c make mm/memory.s
由此,您可以确定正在使用哪个头文件。