Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:36:53 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sched_getaffinity
Proto:long sched_getaffinity(pid_t pid, struct cpumask *mask)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If Not p Then Go to out_unlock |
| 5537 | retval = security_task_getscheduler(p) |
| 5538 | If retval Then Go to out_unlock |
| 5545 | out_unlock : |
| 5548 | Return retval |
| Name | Describe |
|---|---|
| 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 |
| 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 |