函数逻辑报告 |
Source Code:fs\timerfd.c |
Create Date:2022-07-29 10:51:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_timerfd_settime
函数原型:static int do_timerfd_settime(int ufd, int flags, const struct itimerspec64 *new, struct itimerspec64 *old)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | ufd | |
| int | flags | |
| const struct itimerspec64 * | new | |
| struct itimerspec64 * | old |
| 443 | 如果flags按位与Flags for timerfd_settime. 的反或非itimerspec64_valid(new)则返回:负EINVAL |
| 447 | ret等于timerfd_fget(ufd, & f) |
| 457 | timerfd_setup_cancel(ctx, flags) |
| 463 | 循环 |
| 464 | spin_lock_irq( & lock) |
| 469 | 否则 |
| 473 | spin_unlock_irq( & lock) |
| 475 | 如果isalarm(ctx)则hrtimer_cancel_wait_running( & timer) |
| 477 | 否则hrtimer_cancel_wait_running( & tmr) |
| 488 | 如果isalarm(ctx)则alarm_forward_now( & alarm, tintv) |
| 494 | it_value等于Map the ktime_t to timespec conversion to ns_to_timespec function (timerfd_get_remaining(ctx)) |
| 500 | ret等于timerfd_setup(ctx, flags, new) |
| 502 | spin_unlock_irq( & lock) |
| 504 | 返回:ret |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE4 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |