函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Update expiry time from increment, and increase overrun count,* given the current clock sample.

函数原型:static u64 bump_cpu_timer(struct k_itimer *timer, u64 now)

返回类型:u64

参数:

类型参数名称
struct k_itimer *timer
u64now
127  expires等于expires
130  如果非it_interval则返回:expires
133  如果now小于expires则返回:expires
136  incr等于it_interval
137  delta等于nowincrexpires
140 incr小于deltaincr循环incr等于incr左移1位
143 i大于等于0循环
144  如果delta小于incr则继续下一循环
147  expires加等于incr
148  it_overrun加等于1LL左移i
149  delta减等于incr
151  返回:expires
调用者
名称描述
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
posix_cpu_timer_rearm