Function report |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-28 10:47:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Functions for validating access to tasks.
Proto:static struct task_struct *lookup_task(const pid_t pid, bool thread, bool gettime)
Type:struct task_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const pid_t | pid | |
| bool | thread | |
| bool | gettime |
| 59 | If Not pid Then Return If thread Then current process Else group_leader |
| 62 | p = find_task_by_vpid(pid) |
| 66 | If thread Then Return same_thread_group(p, current process) ? p : NULL |
| 69 | If gettime Then |
| 79 | Return (p == current process || thread_group_leader(p)) ? p : NULL |
| 85 | Return Do to the insanities of de_thread it is possible for a process* to have the pid of the thread group leader without actually being* the thread group leader ? p : NULL |
| Name | Describe |
|---|---|
| __get_task_for_clock |
| 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 |