Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:45
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_cpus_allowed_ptr

Proto:static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
const struct cpumask *new_mask
1600  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return -EINVAL
1602  Return 0
Caller
NameDescribe
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.