Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\user_namespace.c Create Date:2022-07-28 11:19:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mappings_overlap

Proto:static bool mappings_overlap(struct uid_gid_map *new_map, struct uid_gid_extent *extent)

Type:bool

Parameter:

TypeParameterName
struct uid_gid_map *new_map
struct uid_gid_extent *extent
715  upper_first = first
716  lower_first = lower_first
717  upper_last = upper_first + count - 1
718  lower_last = lower_first + count - 1
720  When idx < 64 bytes -- 1 cache line cycle
725  If 64 bytes -- 1 cache line <= UID_GID_MAP_MAX_BASE_EXTENTS Then prev = extent[idx]
727  Else prev = forward[idx]
730  prev_upper_first = first
731  prev_lower_first = lower_first
732  prev_upper_last = prev_upper_first + count - 1
733  prev_lower_last = prev_lower_first + count - 1
736  If prev_upper_first <= upper_last && prev_upper_last >= upper_first Then Return true
741  If prev_lower_first <= lower_last && prev_lower_last >= lower_first Then Return true
745  Return false
Caller
NameDescribe
map_write