函数逻辑报告 | 
Source Code:kernel\sched\core.c | 
Create Date:2022-07-27 10:37:26 | 
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:sched_getaffinity
函数原型:long sched_getaffinity(pid_t pid, struct cpumask *mask)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| pid_t | pid | |
| struct cpumask * | mask | 
| 5533 | p等于d_process_by_pid - find a process with a matching PID value.*@pid: the pid in question.* The task of @pid, if found. %NULL otherwise. | 
| 5534 | 如果非p则转到:out_unlock | 
| 5537 | retval等于security_task_getscheduler(p) | 
| 5538 | 如果retval则转到:out_unlock | 
| 5545 | out_unlock : | 
| 5548 | 返回:retval | 
| 名称 | 描述 | 
|---|---|
| SYSCALL_DEFINE3 | sys_sched_getaffinity - get the CPU affinity of a process*@pid: pid of the process*@len: length in bytes of the bitmask pointed to by user_mask_ptr*@user_mask_ptr: user-space pointer to hold the current CPU mask | 
| COMPAT_SYSCALL_DEFINE3 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |