函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_id_range_down

函数原型:static unsigned int map_id_range_down(struct uid_gid_map *map, unsigned int id, unsigned int count)

返回类型:unsigned int

参数:

类型参数名称
struct uid_gid_map *map
unsigned intid
unsigned intcount
293  extents等于 64 bytes -- 1 cache line
294  smp_rmb()
296  如果extents小于等于UID_GID_MAP_MAX_BASE_EXTENTSextent等于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  否则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  如果extentid等于idfirstlower_first
304  否则id = (u32) - 1
307  返回:id
调用者
名称描述
map_id_down
map_write