| Function report | 
| Source Code: kernel\time\timekeeping.c | Create Date:2022-07-28 10:43:04 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_adjtimex() - Accessor function to NTP __do_adjtimex function
Proto:int do_adjtimex(struct __kernel_timex *txc)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct __kernel_timex * | txc | 
| 2315 | tk = timekeeper | 
| 2327 | If mode selector & add 'time' to current time Then | 
| 2330 | nanoseconds = tv_usec | 
| 2331 | If Not ( mode selector & select nanosecond resolution ) Then nanoseconds *= 1000 | 
| 2333 | ret = mekeeping_inject_offset - Adds or subtracts from the current time.*@tv: pointer to the timespec variable containing the offset* Adds or subtracts an offset value from the current time. | 
| 2337 | audit_tk_injoffset(delta) | 
| 2340 | audit_ntp_init( & ad) | 
| 2344 | raw_spin_lock_irqsave( & timekeeper_lock, flags) | 
| 2345 | write_seqcount_begin( & seq) | 
| 2347 | orig_tai = tai = tai_offset | 
| 2356 | write_seqcount_end( & seq) | 
| 2357 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) | 
| 2359 | audit_ntp_log( & ad) | 
| 2362 | If mode selector & (quency offset | ick value ) Then mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length | 
| 2368 | ntp_notify_cmos_timer() | 
| 2370 | Return ret | 
| Name | Describe | 
|---|---|
| posix_clock_realtime_adj | 
| 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 |