Function report |
Source Code:fs\timerfd.c |
Create Date:2022-07-28 20:19:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_timerfd_settime
Proto:static int do_timerfd_settime(int ufd, int flags, const struct itimerspec64 *new, struct itimerspec64 *old)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | ufd | |
| int | flags | |
| const struct itimerspec64 * | new | |
| struct itimerspec64 * | old |
| 443 | If flags & ~Flags for timerfd_settime. || Not itimerspec64_valid(new) Then Return -EINVAL |
| 447 | ret = timerfd_fget(ufd, & f) |
| 452 | If isalarm(ctx) && Not Check operation authority Then |
| 457 | timerfd_setup_cancel(ctx, flags) |
| 463 | cycle |
| 464 | spin_lock_irq( & lock) |
| 469 | Else |
| 473 | spin_unlock_irq( & lock) |
| 475 | If isalarm(ctx) Then hrtimer_cancel_wait_running( & timer) |
| 477 | Else hrtimer_cancel_wait_running( & tmr) |
| 488 | If isalarm(ctx) Then 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 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE4 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |