Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Slow path of a mempolicy duplicate

Proto:struct mempolicy *__mpol_dup(struct mempolicy *old)

Type:struct mempolicy

Parameter:

TypeParameterName
struct mempolicy *old
2243  new = kmem_cache_alloc(policy_cache, GFP_KERNEL)
2245  If Not new Then Return ERR_PTR( - ENOMEM)
2249  If old == mempolicy Then
2250  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.
2251  new = old
2252  task_unlock(current process)
2253  Else new = old
2256  If current_cpuset_is_being_rebound() Then
2257  mems = puset_mems_allowed - return mems_allowed mask from a tasks cpuset.*@tsk: pointer to task_struct from which to obtain cpuset->mems_allowed.* Description: Returns the nodemask_t mems_allowed of the cpuset* attached to the specified @tsk
2258  mpol_rebind_policy - Migrate a policy to a different set of nodes* Per-vma policies are protected by mmap_sem. Allocations using per-task* policies are protected by task->mems_allowed_seq to prevent a premature
2260  atomic_set( & refcnt, 1)
2261  Return new
Caller
NameDescribe
mpol_dup