Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:32:59
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mempolicy_nodemask_intersects* If tsk's mempolicy is "default" [NULL], return 'true' to indicate default* policy. Otherwise, check for intersection between mask and the policy* nodemask for 'bind' or 'interleave' policy. For 'perferred' or 'local'

Proto:bool mempolicy_nodemask_intersects(struct task_struct *tsk, const nodemask_t *mask)

Type:bool

Parameter:

TypeParameterName
struct task_struct *tsk
const nodemask_t *mask
2040  bool ret = true
2042  If Not mask Then Return ret
2044  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
2045  mempolicy = mempolicy
2046  If Not mempolicy Then Go to out
2050  Case See MPOL_* above == MPOL_PREFERRED
2057  Break
2058  Case See MPOL_* above == MPOL_BIND
2059  Case See MPOL_* above == MPOL_INTERLEAVE
2060  ret = nodes_intersects( interleave/bind , * mask)
2061  Break
2062  Default
2063  BUG()
2065  out :
2066  task_unlock(tsk)
2067  Return ret