In the linux, asm or asm-generic kernel?

in mm / memory.c, it includes one file:

#include <asm/tlb.h> 

tlb.h - include/asm-generic/tlb.h or arch/arm/include/asm/tlb.h ?

+8
linux-kernel
source share
1 answer

If necessary, the header files in arch/arm/include/asm will contain the corresponding header file in include/asm-generic .

So, in this case, 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 this, you can determine which header file is being used.

+2
source share

All Articles