| Function report | 
| Source Code: kernel\time\itimer.c | Create Date:2022-07-28 10:49:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_getitimer
Proto:static int do_getitimer(int which, struct itimerspec64 *value)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | which | |
| struct itimerspec64 * | value | 
| 78 | tsk = current process | 
| 82 | spin_lock_irq( & siglock) | 
| 86 | spin_unlock_irq( & siglock) | 
| 87 | Break | 
| 88 | Case which == ITIMER_VIRTUAL | 
| 89 | get_cpu_itimer(tsk, CPUCLOCK_VIRT, value) | 
| 90 | Break | 
| 91 | Case which == ITIMER_PROF | 
| 92 | get_cpu_itimer(tsk, CPUCLOCK_PROF, value) | 
| 93 | Break | 
| 94 | Default | 
| 95 | Return -EINVAL | 
| 97 | Return 0 | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE2 | |
| COMPAT_SYSCALL_DEFINE2 | 
| 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 |