Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempolicy.h Create Date:2022-07-28 05:53:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mpol_put

Proto:static inline void mpol_put(struct mempolicy *pol)

Type:void

Parameter:

TypeParameterName
struct mempolicy *pol
68  If pol Then Slow path of a mpol destructor.
Caller
NameDescribe
dup_mmap
copy_processCreate a new 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.