Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:struct timeval ns_to_timeval(const s64 nsec)

Type:struct timeval

Parameter:

TypeParameterName
const s64nsec
485  ts = s_to_timespec - Convert nanoseconds to timespec*@nsec: the nanoseconds value to be converted* Returns the timespec representation of the nsec parameter.
488  seconds = seconds
489  microseconds = nanoseconds / 1000
491  Return tv