Function report |
Source Code:kernel\time\itimer.c |
Create Date:2022-07-28 10:49:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_setitimer
Proto:static int do_setitimer(int which, struct itimerspec64 *value, struct itimerspec64 *ovalue)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | which | |
| struct itimerspec64 * | value | |
| struct itimerspec64 * | ovalue |
| 213 | tsk = current process |
| 219 | again : |
| 220 | spin_lock_irq( & siglock) |
| 221 | timer = real_timer |
| 222 | If ovalue Then |
| 234 | If expires != 0 Then |
| 238 | Else it_real_incr = 0 |
| 242 | spin_unlock_irq( & siglock) |
| 243 | Break |
| 244 | Case which == ITIMER_VIRTUAL |
| 245 | set_cpu_itimer(tsk, CPUCLOCK_VIRT, value, ovalue) |
| 246 | Break |
| 247 | Case which == ITIMER_PROF |
| 248 | set_cpu_itimer(tsk, CPUCLOCK_PROF, value, ovalue) |
| 249 | Break |
| 250 | Default |
| 251 | Return -EINVAL |
| 253 | Return 0 |
| Name | Describe |
|---|---|
| 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 |
| 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 |