函数逻辑报告 |
Source Code:kernel\time\posix-timers.c |
Create Date:2022-07-27 11:46:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Get the time remaining on a POSIX.1b interval timer. This function* is ALWAYS called with spin_lock_irq on the timer, thus it must not* mess with irq.* We have a couple of messes to clean up here. First there is the case
函数原型:void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct k_itimer * | timr | |
| struct itimerspec64 * | cur_setting |
| 652 | iv等于it_interval |
| 655 | 如果iv则 |
| 657 | 否则如果非it_active则 |
| 662 | 如果非sig_none则返回 |
| 677 | 如果iv且it_requeue_pending按位与REQUEUE_PENDING或sig_none的值则it_overrun加等于timer_forward(timr, now) |
| 680 | remaining等于timer_remaining(timr, now) |
| 682 | 如果remaining小于等于0则 |
| 687 | 如果非sig_none则 nanoseconds 等于1 |
| 689 | 否则 |
| 名称 | 描述 |
|---|---|
| common_timer_set | Set a POSIX.1b interval timer. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |