函数逻辑报告 |
Source Code:kernel\time\clockevents.c |
Create Date:2022-07-27 11:49:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:设置下一次触发时间
函数原型:int clockevents_program_event(struct clock_event_device *dev, ktime_t expires, bool force)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct clock_event_device * | dev | |
ktime_t | expires | |
bool | force |
310 | 如果WARN_ON_ONCE(expires < 0)则返回:负ETIME |
313 | next_event等于expires |
315 | 如果clockevent_state_shutdown(dev)则返回:0 |
319 | WARN_ONCE(!clockevent_state_oneshot(dev), "Current state: %d\n", clockevent_get_state(dev)) |
323 | 如果features按位与CLOCK_EVT_FEAT_KTIME则返回:set_next_ktime(expires, dev) |
327 | 如果delta小于等于0则返回:如果force则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.否则负ETIME |
330 | delta等于两数取小(delta, (int64_t)max_delta_ns) |
331 | delta等于两数取大(delta, (int64_t)min_delta_ns) |
334 | rc等于set_next_event((unsignedlong)clc, dev) |
336 | 返回:如果rc且force则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.否则rc |
名称 | 描述 |
---|---|
__clockevents_update_freq | |
tick_handle_periodic | 时钟中断函数 |
tick_setup_periodic | Setup the device for a periodic tick |
tick_handle_periodic_broadcast | Event handler for periodic broadcast ticks |
tick_program_event | k_program_event |
tick_resume_oneshot | k_resume_onshot - resume oneshot mode |
tick_setup_oneshot | k_setup_oneshot - setup the event device for oneshot mode (hres or nohz) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |