函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\user_namespace.c Create Date:2022-07-27 12:21:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mappings_overlap

函数原型:static bool mappings_overlap(struct uid_gid_map *new_map, struct uid_gid_extent *extent)

返回类型:bool

参数:

类型参数名称
struct uid_gid_map *new_map
struct uid_gid_extent *extent
715  upper_first等于first
716  lower_first等于lower_first
717  upper_last等于upper_firstcount减1
718  lower_last等于lower_firstcount减1
720 idx小于 64 bytes -- 1 cache line 循环
725  如果 64 bytes -- 1 cache line 小于等于UID_GID_MAP_MAX_BASE_EXTENTSprev等于extent[idx]
727  否则prev等于forward[idx]
730  prev_upper_first等于first
731  prev_lower_first等于lower_first
732  prev_upper_last等于prev_upper_firstcount减1
733  prev_lower_last等于prev_lower_firstcount减1
736  如果prev_upper_first小于等于upper_lastprev_upper_last大于等于upper_first则返回:true
741  如果prev_lower_first小于等于lower_lastprev_lower_last大于等于lower_first则返回:true
745  返回:false
调用者
名称描述
map_write