vdso.h 507 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_VDSO_H
  3. #define __ASM_VDSO_H
  4. #ifdef __KERNEL__
  5. #ifndef __ASSEMBLY__
  6. struct mm_struct;
  7. #ifdef CONFIG_VDSO
  8. void arm_install_vdso(struct mm_struct *mm, unsigned long addr);
  9. extern unsigned int vdso_total_pages;
  10. #else /* CONFIG_VDSO */
  11. static inline void arm_install_vdso(struct mm_struct *mm, unsigned long addr)
  12. {
  13. }
  14. #define vdso_total_pages 0
  15. #endif /* CONFIG_VDSO */
  16. #endif /* __ASSEMBLY__ */
  17. #endif /* __KERNEL__ */
  18. #endif /* __ASM_VDSO_H */