Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mpol_set_shared_policy

Proto:int mpol_set_shared_policy(struct shared_policy *info, struct vm_area_struct *vma, struct mempolicy *npol)

Type:int

Parameter:

TypeParameterName
struct shared_policy *info
struct vm_area_struct *vma
struct mempolicy *npol
2642  struct sp_node * new = NULL
2643  sz = vma_pages(vma)
2645  pr_debug("set_shared_policy %lx sz %lu %d %d %lx\n", Offset (within vm_file) in PAGE_SIZEunits , sz, npol ? See MPOL_* above : - 1, npol ? See set_mempolicy() MPOL_F_* above : - 1, npol ? nodes_addr( interleave/bind )[0] : NUMA_NO_NODE)
2651  If npol Then
2652  new = sp_alloc(Offset (within vm_file) in PAGE_SIZEunits , Offset (within vm_file) in PAGE_SIZEunits + sz, npol)
2653  If Not new Then Return -ENOMEM
2656  err = Replace a policy range.
2657  If err && new Then sp_free(new)
2659  Return err
Caller
NameDescribe
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.