Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Slow path of a mempolicy comparison

Proto:bool __mpol_equal(struct mempolicy *a, struct mempolicy *b)

Type:bool

Parameter:

TypeParameterName
struct mempolicy *a
struct mempolicy *b
2267  If Not a || Not b Then Return false
2269  If See MPOL_* above != See MPOL_* above Then Return false
2271  If See set_mempolicy() MPOL_F_* above != See set_mempolicy() MPOL_F_* above Then Return false
2273  If mpol_store_user_nodemask(a) Then If Not nodes_equal( nodemask passed by user , nodemask passed by user ) Then
2275  Return false
2278  Case See MPOL_* above == MPOL_BIND
2280  Case See MPOL_* above == MPOL_INTERLEAVE
2281  Return Not Not nodes_equal( interleave/bind , interleave/bind )
2282  Case See MPOL_* above == MPOL_PREFERRED
2284  If See set_mempolicy() MPOL_F_* above & preferred local allocation Then Return true
2286  Return preferred == preferred
2287  Default
2288  BUG()
2289  Return false