函数逻辑报告 |
Source Code:kernel\time\posix-timers.c |
Create Date:2022-07-27 11:46:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_timer_settime
函数原型:static int do_timer_settime(timer_t timer_id, int tmr_flags, struct itimerspec64 *new_spec64, struct itimerspec64 *old_spec64)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| timer_t | timer_id | |
| int | tmr_flags | |
| struct itimerspec64 * | new_spec64 | |
| struct itimerspec64 * | old_spec64 |
| 883 | error等于0 |
| 885 | 如果非Returns true if the timespec64 is norm, false if denorm:或非Returns true if the timespec64 is norm, false if denorm:则返回:负EINVAL |
| 889 | 如果old_spec64则memset(old_spec64, 0, old_spec64的长度) |
| 892 | timr等于lock_timer(timer_id, & flags) |
| 893 | retry : |
| 898 | 如果WARN_ON_ONCE(!kc || !timer_set)则error等于负EINVAL |
| 900 | 否则error等于timer_set(timr, tmr_flags, new_spec64, old_spec64) |
| 903 | 如果error恒等于SPDX-License-Identifier: GPL-2.0 则 |
| 905 | old_spec64 = NULL |
| 908 | 转到:retry |
| 910 | unlock_timer(timr, flags) |
| 912 | 返回:error |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE4 | Set a POSIX.1b interval timer |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |