Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\time.c Create Date:2022-07-28 10:38:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:s_to_timespec64 - Convert nanoseconds to timespec64*@nsec: the nanoseconds value to be converted* Returns the timespec64 representation of the nsec parameter.

Proto:struct timespec64 ns_to_timespec64(const s64 nsec)

Type:struct timespec64

Parameter:

TypeParameterName
const s64nsec
551  struct timespec64 ts = {0, 0}
554  If Value is more likely to compile time(nsec > 0) Then
555  seconds = div_u64_rem(nsec, NSEC_PER_SEC, & rem)
556  nanoseconds = rem
557  Else if nsec < 0 Then
563  seconds = -div_u64_rem( - nsec - 1, NSEC_PER_SEC, & rem) - 1
564  nanoseconds = NSEC_PER_SEC - rem - 1
567  Return ts
Caller
NameDescribe
ns_to_old_timeval32
read_persistent_wall_and_boot_offsetad_persistent_wall_and_boot_offset - Read persistent clock, and also offset* from the boot.* Weak dummy function for arches that do not yet support it.* The default function calculates offset based on the current value of* local_clock()
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.
posix_cpu_clock_get
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
posix_cpu_timer_get
posix_cpu_nsleep_restart
get_cpu_itimer
set_cpu_itimer
ns_to_kernel_old_timeval