函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:28
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Find shared policy intersecting idx

函数原型:struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, unsigned long idx)

返回类型:struct mempolicy

参数:

类型参数名称
struct shared_policy *sp
unsigned longidx
2366  struct mempolicy * pol = NULL
2369  如果非rb_node则返回:NULL
2371  read_lock( & lock)
2372  sn等于lookup first element intersecting start-end. Caller holds sp->lock for* reading or for writing
2373  如果sn
2374  mpol_get(policy)
2375  pol等于policy
2377  read_unlock( & lock)
2378  返回:pol