Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:struct timespec ns_to_timespec(const s64 nsec)

Type:struct timespec

Parameter:

TypeParameterName
const s64nsec
463  If Not nsec Then Return (struct timespec){0, 0}
466  seconds = div_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder
467  If Value for the false possibility is greater at compile time(rem < 0) Then
468  seconds --
469  rem += NSEC_PER_SEC
471  nanoseconds = rem
473  Return ts
Caller
NameDescribe
ns_to_timevals_to_timeval - Convert nanoseconds to timeval*@nsec: the nanoseconds value to be converted* Returns the timeval representation of the nsec parameter.