函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Slow path of a mempolicy duplicate

函数原型:struct mempolicy *__mpol_dup(struct mempolicy *old)

返回类型:struct mempolicy

参数:

类型参数名称
struct mempolicy *old
2243  new等于分配高速缓存区
2245  如果非new则返回:错误号
2249  如果old恒等于mempolicy
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(当前进程)
2253  否则new等于old
2256  如果current_cpuset_is_being_rebound()则
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  返回:new
调用者
名称描述
mpol_dup