Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in linux kernel, asm or asm-generic?

Tags:

linux-kernel

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

#include <asm/tlb.h>

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

like image 518
Haifeng Li Avatar asked Oct 28 '12 13:10

Haifeng Li


1 Answers

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

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.

like image 162
Haifeng Li Avatar answered Oct 17 '22 17:10

Haifeng Li