Function report | 
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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 2286 | If mode selector & select nanosecond resolution Then | 
| 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 | 
| Name | Describe | 
|---|---|
| do_adjtimex | do_adjtimex() - Accessor function to NTP __do_adjtimex function | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |