Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\user_namespace.c Create Date:2022-07-28 11:19:03
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

Proto:static unsigned int map_id_range_down(struct uid_gid_map *map, unsigned int id, unsigned int count)

Type:unsigned int

Parameter:

TypeParameterName
struct uid_gid_map *map
unsigned intid
unsigned intcount
293  extents = 64 bytes -- 1 cache line
294  smp_rmb()
296  If extents <= UID_GID_MAP_MAX_BASE_EXTENTS Then extent = 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.
298  Else extent = map_id_range_down_max - Find idmap via binary search in ordered idmap array.* Can only be called if number of mappings exceeds UID_GID_MAP_MAX_BASE_EXTENTS.
302  If extent Then id = id - first + lower_first
304  Else id = (u32) - 1
307  Return id
Caller
NameDescribe
map_id_down
map_write