Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\freezer.c Create Date:2022-07-28 11:13:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Adjust the task state (freeze or unfreeze) and revisit the state of* source and destination cgroups.

Proto:void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src, struct cgroup *dst)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct cgroup *src
struct cgroup *dst
225  lockdep_assert_held( & css_set_lock)
230  If Per task flags (PF_*), defined further below: & I am a kernel thread Then Return
237  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from && Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from && Not task is frozen/stopped (used by the cgroup freezer) Then Return
247  If task is frozen/stopped (used by the cgroup freezer) Then
248  Increment cgroup's nr_frozen_tasks.
249  Decrement cgroup's nr_frozen_tasks.
251  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
252  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
257  Freeze or unfreeze the task by setting or clearing the JOBCTL_TRAP_FREEZE* jobctl bit.