函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-27 06:58:34
Last Modify:2021-07-28 10:30:23 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_cpus_allowed_ptr

函数原型:static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)

返回类型:int

参数:

类型参数名称
struct task_struct *p
const struct cpumask *new_mask
1600  如果非测试CPU信息则返回:负EINVAL
1602  返回:0
调用者
名称描述
test_func
apm_power_offapm_power_off - ask the BIOS to power off* Handle the power off sequence
apm
worker_attach_to_poolworker_attach_to_pool() - attach a worker to a pool*@worker: worker to be attached*@pool: the target pool* Attach @worker to @pool. Once attached, the %WORKER_UNBOUND flag and* cpu-binding of @worker are kept coordinated with the pool across
__kthread_create_on_node
kthreadd
migrate_to_reboot_cpu
__set_cpus_allowed_ptr
housekeeping_affine
rcu_perf_readerRCU perf reader kthread. Repeatedly does empty RCU read-side* critical section, minimizing update-side interference.
rcu_perf_writerRCU perf writer kthread. Repeatedly does a grace period.
update_tasks_cpumaskpdate_tasks_cpumask - Update the cpumasks of tasks in the cpuset.*@cs: the cpuset in which each task's cpus_allowed mask needs to be changed* Iterate through each task of @cs updating its cpus_allowed to the* effective cpuset's
cpuset_attach
cpuset_forkMake sure the new task conform to the current state of its parent,* which could have been changed by cpuset just after it inherits the* state from the parent and before it sits on the cgroup's task list.
torture_shuffle_tasksShuffle tasks such that we allow shuffle_idle_cpu to become idle.* A special case is when shuffle_idle_cpu = -1, in which case we allow* the tasks to run on all CPUs.
rest_init剩余初始化
kswapdThe background pageout daemon, started as a kernel thread* from the init process.* This basically trickles out pages so that we have _some_* free memory available even if there is no other activity* that frees anything up
kswapd_cpu_onlineIt's optimal to keep kswapds on the same CPUs as their memory, butnot required for correctness. So if the last cpu in a node goesaway, we get changed to run anywhere: as the first one comes back,restore their cpu bindings.