函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockevents_program_min_delta - Set clock event device to the minimum delay.*@dev: device to program* Returns 0 on success, -ETIME when the retry loop failed.

函数原型:static int clockevents_program_min_delta(struct clock_event_device *dev)

返回类型:int

参数:

类型参数名称
struct clock_event_device *dev
275  delta等于0
278 i小于10循环
279  delta加等于min_delta_ns
280  next_event等于Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(ktime_get(), delta)
282  如果clockevent_state_shutdown(dev)则返回:0
285  retries自加
286  clc等于deltamult右移shift
287  如果set_next_event((unsignedlong)clc, dev)恒等于0则返回:0
290  返回:负ETIME
调用者
名称描述
clockevents_program_event设置下一次触发时间