函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_nodemask_of_mempolicy* If the current task's mempolicy is "default" [NULL], return 'false'* to indicate default policy

函数原型:bool init_nodemask_of_mempolicy(nodemask_t *mask)

返回类型:bool

参数:

类型参数名称
nodemask_t *mask
1997  如果非maskmempolicy的值则返回:false
2000  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.
2001  mempolicy等于mempolicy
2003  :See MPOL_* above 恒等于MPOL_PREFERRED
2004  如果See set_mempolicy() MPOL_F_* above 按位与preferred local allocation nid等于Returns the number of the current Node.
2006  否则nid等于 preferred
2008  init_nodemask_of_node(mask, nid)
2009  退出
2011  :See MPOL_* above 恒等于MPOL_BIND
2013  :See MPOL_* above 恒等于MPOL_INTERLEAVE
2014  mask等于 interleave/bind
2015  退出
2017  默认
2018  BUG()
2020  task_unlock(当前进程)
2022  返回:true