函数逻辑报告 |
Source Code:kernel\time\itimer.c |
Create Date:2022-07-27 11:49:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_setitimer
函数原型:static int do_setitimer(int which, struct itimerspec64 *value, struct itimerspec64 *ovalue)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | which | |
struct itimerspec64 * | value | |
struct itimerspec64 * | ovalue |
219 | again : |
220 | spin_lock_irq( & siglock) |
221 | timer等于real_timer |
222 | 如果ovalue则 |
234 | 如果expires不等于0则 |
238 | 否则it_real_incr等于0 |
242 | spin_unlock_irq( & siglock) |
243 | 退出 |
244 | 当:which恒等于ITIMER_VIRTUAL |
245 | set_cpu_itimer(tsk, CPUCLOCK_VIRT, value, ovalue) |
246 | 退出 |
247 | 当:which恒等于ITIMER_PROF |
248 | set_cpu_itimer(tsk, CPUCLOCK_PROF, value, ovalue) |
249 | 退出 |
250 | 默认 |
251 | 返回:负EINVAL |
253 | 返回:0 |
名称 | 描述 |
---|---|
clear_itimer | |
alarm_setitimer | alarm_setitimer - set alarm in seconds*@seconds: number of seconds until alarm* 0 disables the alarm* Returns the remaining time in seconds of a pending timer or 0 when* the timer is not active |
SYSCALL_DEFINE3 | |
COMPAT_SYSCALL_DEFINE3 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |