Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:42:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int timekeeping_inject_offset(const struct timespec64 *ts)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct timespec64 * | ts |
1275 | tk = timekeeper |
1278 | ret = 0 |
1280 | If nanoseconds < 0 || nanoseconds >= NSEC_PER_SEC Then Return -EINVAL |
1283 | raw_spin_lock_irqsave( & timekeeper_lock, flags) |
1284 | write_seqcount_begin( & seq) |
1289 | tmp = timespec64_add(tk_xtime(tk), * ts) |
1290 | If lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0 > 0 || Not timespec64_valid_settod( & tmp) Then |
1296 | tk_xtime_add(tk, ts) |
1299 | error : |
1302 | write_seqcount_end( & seq) |
1303 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) |
1308 | Return ret |
Name | Describe |
---|---|
timekeeping_warp_clock | Adjust the time obtained from the CMOS to be UTC time instead of* local time |
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 |