Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:42:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_settimeofday64 - Sets the time of day.*@ts: pointer to the timespec64 variable containing the new time* Sets the time of day to the new time and update NTP and notify hrtimers
Proto:int do_settimeofday64(const struct timespec64 *ts)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct timespec64 * | ts |
1226 | tk = timekeeper |
1229 | ret = 0 |
1231 | If Not timespec64_valid_settod(ts) Then Return -EINVAL |
1234 | raw_spin_lock_irqsave( & timekeeper_lock, flags) |
1235 | write_seqcount_begin( & seq) |
1241 | nanoseconds = nanoseconds - nanoseconds |
1243 | If lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0 > 0 Then |
1250 | tk_set_xtime(tk, ts) |
1251 | out : |
1254 | write_seqcount_end( & seq) |
1255 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) |
1260 | If Not ret Then audit_tk_injoffset(ts_delta) |
1263 | Return ret |
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 |