due to disk format or wire protocol * issues) when it is known that the times are less than 68 years apart. This is useful for comparing 32-bit seconds values that can't * be converted to 64-bit values (e.g. */ struct tm /** * time_after32 - compare two 32-bit relative times * time which may be after * time which may be before * * time_after32(a, b) returns true if the time is after time * time_before32(b, a) returns true if the time is before time * * Similar to time_after(), compare two 32-bit timestamps for relative * times. */ #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET extern u32 ( * arch_gettimeoffset )( void ) #endif struct itimerval extern int do_setitimer ( int which, struct itimerval * value, struct itimerval * ovalue ) extern int do_getitimer ( int which, struct itimerval * value ) extern long do_utimes ( int dfd, const char _user * filename, struct timespec64 * times, int flags ) /* * Similar to the struct tm in userspace, but it needs to be here so * that the kernel source is self contained. So we provide a callout these arches * can implement for use with the jiffies clocksource to provide * finer then tick granular time. Imagine turning the potentiometer, the LED will grow brighter when turned one way. Then, using the freq command, this sets the frequency to modulate the pulse width. An object, onboardled is created with an activated PWM output on GPIO pin 21. Wrapping them to act like one is possible * but not very efficient. First, the machine and utime libraries were imported. Since these timers wrap every tick, they're not really * useful as clocksources. * This is mainly the case in architectures that get their * inter-tick times by reading the counter on their interval * timer. * SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_TIME_H #define _LINUX_TIME_H # include # include # include # include extern struct timezone sys_tz int get_timespec64 ( struct timespec64 * ts, const struct timespec _user * uts ) int put_timespec64 ( const struct timespec64 * ts, struct timespec _user * uts ) int get_itimerspec64 ( struct itimerspec64 * it, const struct itimerspec _user * uit ) int put_itimerspec64 ( const struct itimerspec64 * it, struct itimerspec _user * uit ) extern time64_t mktime64 ( const unsigned int year, const unsigned int mon, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec ) /* Some architectures do not supply their own clocksource.
0 Comments
Leave a Reply. |