Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mekeeping_validate_timex - Ensures the timex is ok for use in do_adjtimex

Proto:static int timekeeping_validate_timex(const struct __kernel_timex *txc)

Type:int

Parameter:

TypeParameterName
const struct __kernel_timex *txc
2249  If mode selector & switch between adjtime/adjtimex modes Then
2251  If Not ( mode selector & ld-fashioned adjtime ) Then Return -EINVAL
2253  If Not ( mode selector & ad-only adjtime ) && Not Check operation authority Then Return -EPERM
2256  Else
2258  If mode selector && Not Check operation authority Then Return -EPERM
2264  If mode selector & ick value && ( (modified) usecs between clock ticks < 900000 / USER_HZ || (modified) usecs between clock ticks > 1100000 / USER_HZ ) Then Return -EINVAL
2270  If mode selector & add 'time' to current time Then
2272  If Not Check operation authority Then Return -EPERM
2283  If tv_usec < 0 Then Return -EINVAL
2287  If tv_usec >= NSEC_PER_SEC Then Return -EINVAL
2289  Else
2290  If tv_usec >= USEC_PER_SEC Then Return -EINVAL
2299  If mode selector & quency offset && BITS_PER_LONG == 64 Then
2300  If LLONG_MIN / PPM_SCALE > frequency offset (scaled ppm) Then Return -EINVAL
2302  If LLONG_MAX / PPM_SCALE < frequency offset (scaled ppm) Then Return -EINVAL
2306  Return 0
Caller
NameDescribe
do_adjtimexdo_adjtimex() - Accessor function to NTP __do_adjtimex function