Function report | 
Source Code:kernel\time\posix-cpu-timers.c | 
Create Date:2022-07-28 10:48:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Set one of the process-wide special case CPU timers or RLIMIT_CPU.* The tsk->sighand->siglock must be held by the caller.
Proto:void set_process_cpu_timer(struct task_struct *tsk, unsigned int clkid, u64 *newval, u64 *oldval)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| unsigned int | clkid | |
| u64 * | newval | |
| u64 * | oldval | 
| 1183 | If WARN_ON_ONCE(clkid >= CPUCLOCK_SCHED) Then Return | 
| 1189 | If oldval Then | 
| Name | Describe | 
|---|---|
| update_rlimit_cpu | Called after updating RLIMIT_CPU to run cpu timer and update* tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if* necessary. Needs siglock protection since other code may update the* expiration cache as well. | 
| set_cpu_itimer | 
| 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  |