Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:bool init_nodemask_of_mempolicy(nodemask_t *mask)

Type:bool

Parameter:

TypeParameterName
nodemask_t *mask
1997  If Not (mask && mempolicy) Then Return 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  Case See MPOL_* above == MPOL_PREFERRED
2004  If See set_mempolicy() MPOL_F_* above & preferred local allocation Then nid = Returns the number of the current Node.
2006  Else nid = preferred
2008  init_nodemask_of_node(mask, nid)
2009  Break
2011  Case See MPOL_* above == MPOL_BIND
2013  Case See MPOL_* above == MPOL_INTERLEAVE
2014  mask = interleave/bind
2015  Break
2017  Default
2018  BUG()
2020  task_unlock(current process)
2022  Return true