gettime.h 863 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _VDSO_GETTIME_H
  3. #define _VDSO_GETTIME_H
  4. #include <linux/types.h>
  5. struct __kernel_timespec;
  6. struct __kernel_old_timeval;
  7. struct timezone;
  8. #if !defined(CONFIG_64BIT) || defined(BUILD_VDSO32_64)
  9. struct old_timespec32;
  10. int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res);
  11. int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
  12. #else
  13. int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
  14. int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
  15. #endif
  16. __kernel_old_time_t __vdso_time(__kernel_old_time_t *t);
  17. int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
  18. int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
  19. int __vdso_clock_getres_time64(clockid_t clock, struct __kernel_timespec *ts);
  20. #endif