函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempolicy.h Create Date:2022-07-27 06:53:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpol_put

函数原型:static inline void mpol_put(struct mempolicy *pol)

返回类型:void

参数:

类型参数名称
struct mempolicy *pol
68  如果polSlow path of a mpol destructor.
调用者
名称描述
dup_mmap
copy_process创建进程
remove_vmaClose a vm structure and free it, returning the next.
__vma_adjustWe cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that* is already present in an i_mmap tree without adjusting the tree.* The following helper function should be used when such adjustments* are necessary
__split_vma__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
copy_vmaCopy the vma structure to a new location in the same mm,* prior to moving page table entries, to effect an mremap move.
vma_replace_policyApply policy to a single VMA* This must be called with the mmap_sem held for writing.
do_set_mempolicySet the process memory policy
do_get_mempolicyRetrieve NUMA policy
do_mbind
sp_free
mpol_put_task_policyDrop the (possibly final) reference to task->mempolicy. It needs to be* dropped after task->mempolicy is set to NULL so that any allocation done as* part of its kmem_cache_free(), such as by KASAN, doesn't reference a freed* policy.
shared_policy_replaceReplace a policy range.
mpol_shared_policy_initmpol_shared_policy_init - initialize shared policy for inode*@sp: pointer to inode shared policy*@mpol: struct mempolicy to install* Install non-NULL @mpol in inode's shared policy rb-tree.* On entry, the current task has a reference on a non-NULL @mpol.