函数逻辑报告 |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-27 11:47:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Functions for validating access to tasks.
函数原型:static struct task_struct *lookup_task(const pid_t pid, bool thread, bool gettime)
返回类型:struct task_struct
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const pid_t | pid | |
| bool | thread | |
| bool | gettime |
| 59 | 如果非pid则返回:如果thread则当前进程否则group_leader |
| 62 | p等于find_task_by_vpid(pid) |
| 66 | 如果thread则返回:same_thread_group(p, 当前进程) ? p : NULL |
| 69 | 如果gettime则 |
| 79 | 返回:(p == 当前进程 || thread_group_leader(p)) ? p : NULL |
| 85 | 返回: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 |
| 名称 | 描述 |
|---|---|
| __get_task_for_clock |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |