Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:map_id_range_down_base - Find idmap via binary search in static extent array.* Can only be called if number of mappings is equal or less than* UID_GID_MAP_MAX_BASE_EXTENTS.

Proto:static struct uid_gid_extent *map_id_range_down_base(unsigned extents, struct uid_gid_map *map, unsigned int id, unsigned int count)

Type:struct uid_gid_extent

Parameter:

TypeParameterName
unsignedextents
struct uid_gid_map *map
unsigned intid
unsigned intcount
277  id2 = id + count - 1
280  When idx < extents cycle
281  first = first
282  last = first + count - 1
283  If id >= first && id <= last && id2 >= first && id2 <= last Then Return extent[idx]
287  Return NULL
Caller
NameDescribe
map_id_range_down