Linux source tree
ID: x86-paging/linux-source-tree
x86 Paging Tutorial Linux source tree by
Ciro Santilli 36 Updated 2025-04-24 +Created 1970-01-01
In
v4.2
, look under arch/x86/
:include/asm/pgtable*
include/asm/page*
mm/pgtable*
mm/page*
There seems to be no structs defined to represent the pages, only macros:
include/asm/page_types.h
is specially interesting. Excerpt:#define _PAGE_BIT_PRESENT 0 /* is present */
#define _PAGE_BIT_RW 1 /* writeable */
#define _PAGE_BIT_USER 2 /* userspace addressable */
#define _PAGE_BIT_PWT 3 /* page write through */
New to topics? Read the docs here!