Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sp_alloc

Proto:static struct sp_node *sp_alloc(unsigned long start, unsigned long end, struct mempolicy *pol)

Type:struct sp_node

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
struct mempolicy *pol
2508  n = kmem_cache_alloc(sn_cache, GFP_KERNEL)
2509  If Not n Then Return NULL
2512  newpol = mpol_dup(pol)
2513  If IS_ERR(newpol) Then
2514  kmem_cache_free(sn_cache, n)
2515  Return NULL
2517  See set_mempolicy() MPOL_F_* above |= dentify shared policies
2518  sp_node_init(n, start, end, newpol)
2520  Return n
Caller
NameDescribe
mpol_set_shared_policy