函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:07
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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'

函数原型:bool mempolicy_nodemask_intersects(struct task_struct *tsk, const nodemask_t *mask)

返回类型:bool

参数:

类型参数名称
struct task_struct *tsk
const nodemask_t *mask
2040  bool ret = true
2042  如果非mask则返回: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  如果非mempolicy则转到:out
2050  :See MPOL_* above 恒等于MPOL_PREFERRED
2057  退出
2058  :See MPOL_* above 恒等于MPOL_BIND
2059  :See MPOL_* above 恒等于MPOL_INTERLEAVE
2060  ret等于nodes_intersects( interleave/bind , * mask)
2061  退出
2062  默认
2063  BUG()
2065  out :
2066  task_unlock(tsk)
2067  返回:ret
调用者
名称描述
oom_cpuset_eligiblem_cpuset_eligible() - check task eligiblity for kill*@start: task struct of which task to consider*@oc: pointer to struct oom_control* Task eligibility is determined by whether or not a candidate task, @tsk,* shares the same mempolicy nodes as current if