FILE
vdso64_generic.c
File preview with syntax highlighting.
linux-6.19.14/arch/parisc/kernel/vdso64/vdso64_generic.c
1// SPDX-License-Identifier: GPL-2.0 2 3#include "asm/unistd.h" 4#include <linux/types.h> 5 6struct timezone; 7struct __kernel_timespec; 8struct __kernel_old_timeval; 9 10/* forward declarations */ 11int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 12int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts); 13 14 15int __vdso_gettimeofday(struct __kernel_old_timeval *tv, 16 struct timezone *tz) 17{ 18 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); 19} 20 21int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) 22{ 23 return syscall2(__NR_clock_gettime, (long)clock, (long)ts); 24}
~/
Read-only file preview.