Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find shared policy intersecting idx

Proto:struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, unsigned long idx)

Type:struct mempolicy

Parameter:

TypeParameterName
struct shared_policy *sp
unsigned longidx
2366  struct mempolicy * pol = NULL
2369  If Not rb_node Then Return NULL
2371  read_lock( & lock)
2372  sn = lookup first element intersecting start-end. Caller holds sp->lock for* reading or for writing
2373  If sn Then
2374  mpol_get(policy)
2375  pol = policy
2377  read_unlock( & lock)
2378  Return pol