hugetlb.h 758 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_GENERIC_HUGETLB_H
  2. #define _ASM_GENERIC_HUGETLB_H
  3. static inline pte_t mk_huge_pte(struct page *page, pgprot_t pgprot)
  4. {
  5. return mk_pte(page, pgprot);
  6. }
  7. static inline unsigned long huge_pte_write(pte_t pte)
  8. {
  9. return pte_write(pte);
  10. }
  11. static inline unsigned long huge_pte_dirty(pte_t pte)
  12. {
  13. return pte_dirty(pte);
  14. }
  15. static inline pte_t huge_pte_mkwrite(pte_t pte)
  16. {
  17. return pte_mkwrite(pte);
  18. }
  19. static inline pte_t huge_pte_mkdirty(pte_t pte)
  20. {
  21. return pte_mkdirty(pte);
  22. }
  23. static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot)
  24. {
  25. return pte_modify(pte, newprot);
  26. }
  27. static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr,
  28. pte_t *ptep)
  29. {
  30. pte_clear(mm, addr, ptep);
  31. }
  32. #endif /* _ASM_GENERIC_HUGETLB_H */