Linux Kernel
3.7.1
|
#include <linux/mm.h>
Go to the source code of this file.
Macros | |
#define | pmd_populate_kernel(mm, pmd, pte) set_pmd(pmd, __pmd(_PAGE_TABLE + (unsigned long) __pa(pte))) |
#define | pmd_populate(mm, pmd, pte) |
#define | pmd_pgtable(pmd) pmd_page(pmd) |
#define | __pte_free_tlb(tlb, pte, address) |
#define | check_pgt_cache() do { } while (0) |
Functions | |
pgd_t * | pgd_alloc (struct mm_struct *) |
void | pgd_free (struct mm_struct *mm, pgd_t *pgd) |
pte_t * | pte_alloc_one_kernel (struct mm_struct *, unsigned long) |
pgtable_t | pte_alloc_one (struct mm_struct *, unsigned long) |
OK, this one's a bit tricky... ioremap can get called before memory is initialized (early serial console does this) and will want to alloc a page for its mapping. No userspace pages will ever get allocated before memory is initialized so this applies only to kernel pages. In the event that this is called before memory is initialized we allocate the page using the memblock infrastructure.