pgalloc.h 554 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_X86_PGALLOC_H
  2. #define _ASM_X86_PGALLOC_H
  3. #include <linux/threads.h>
  4. #include <linux/mm.h> /* for struct page */
  5. #include <linux/pagemap.h>
  6. /*
  7. * Allocate and free page tables.
  8. */
  9. extern pgd_t *pgd_alloc(struct mm_struct *);
  10. extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
  11. extern pte_t *pte_alloc_one_kernel(struct mm_struct *, unsigned long);
  12. extern pgtable_t pte_alloc_one(struct mm_struct *, unsigned long);
  13. #ifdef CONFIG_X86_32
  14. # include "pgalloc_32.h"
  15. #else
  16. # include "pgalloc_64.h"
  17. #endif
  18. #endif /* _ASM_X86_PGALLOC_H */