mm_hooks.h 425 B

12345678910111213141516171819
  1. /*
  2. * Define generic no-op hooks for arch_dup_mmap and arch_exit_mmap, to
  3. * be included in asm-FOO/mmu_context.h for any arch FOO which doesn't
  4. * need to hook these.
  5. */
  6. #ifndef _ASM_GENERIC_MM_HOOKS_H
  7. #define _ASM_GENERIC_MM_HOOKS_H
  8. static inline void arch_dup_mmap(struct mm_struct *oldmm,
  9. struct mm_struct *mm)
  10. {
  11. }
  12. static inline void arch_exit_mmap(struct mm_struct *mm)
  13. {
  14. }
  15. #endif /* _ASM_GENERIC_MM_HOOKS_H */