sparsemem_64.h

来自「linux 内核源代码」· C头文件 代码 · 共 27 行

H
27
字号
#ifndef _ASM_X86_64_SPARSEMEM_H#define _ASM_X86_64_SPARSEMEM_H 1#ifdef CONFIG_SPARSEMEM/* * generic non-linear memory support: * * 1) we will not split memory into more chunks than will fit into the flags *    field of the struct page * * SECTION_SIZE_BITS		2^n: size of each section * MAX_PHYSADDR_BITS		2^n: max size of physical address space * MAX_PHYSMEM_BITS		2^n: how much memory we can have in that space * */#define SECTION_SIZE_BITS	27 /* matt - 128 is convenient right now */#define MAX_PHYSADDR_BITS	40#define MAX_PHYSMEM_BITS	40extern int early_pfn_to_nid(unsigned long pfn);#endif /* CONFIG_SPARSEMEM */#endif /* _ASM_X86_64_SPARSEMEM_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?