Function Report

Linux Kernel (v4.4)

Source File:mm\mempolicy.c Create Date:2016-01-14 12:47:50
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:vma_replace_policy

Function:static int vma_replace_policy(struct vm_area_struct *vma, struct mempolicy *pol)

Return Type:static int

Parameter:

Type Parameter NameRemarks
struct vm_area_struct * vma
struct mempolicy * pol

Function description:Apply policy to a single VMA This must be called with the mmap_sem held for writing.

669  dynamic_pr_debug() uses pr_fmt() internally so we don't need it here
671  Describe a memory policy. = mpol_dup(pol)
672  If IS_ERR(Describe a memory policy.) then Returning PTR_ERR(Describe a memory policy.)
675  If Function pointers to deal with this struct. && set_policy() op must add a reference to any non-NULL@new mempolicy to hold the policy upon return then
676  err = set_policy() op must add a reference to any non-NULL@new mempolicy to hold the policy upon return
677  If err then Go to err_out
681  Describe a memory policy. = NUMA policy for the VMA
682  NUMA policy for the VMA = Describe a memory policy.
683  mpol_put(Describe a memory policy.)
685  Returning 0
686  err_out
687  mpol_put(Describe a memory policy.)
688  Returning err
Caller
Function NameFunction description
mbind_rangeStep 2: apply policy to a range and do splits.