Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sort_idmaps - Sorts an array of idmap entries.* Can only be called if number of mappings exceeds UID_GID_MAP_MAX_BASE_EXTENTS.

Proto:static int sort_idmaps(struct uid_gid_map *map)

Type:int

Parameter:

TypeParameterName
struct uid_gid_map *map
823  If 64 bytes -- 1 cache line <= UID_GID_MAP_MAX_BASE_EXTENTS Then Return 0
827  sort(forward, 64 bytes -- 1 cache line , sizeof(structuid_gid_extent), mp function to sort() forward mappings , NULL)
831  reverse = kmemdup(forward, 64 bytes -- 1 cache line * sizeof(structuid_gid_extent), GFP_KERNEL)
834  If Not reverse Then Return -ENOMEM
838  sort(reverse, 64 bytes -- 1 cache line , sizeof(structuid_gid_extent), mp function to sort() reverse mappings , NULL)
841  Return 0
Caller
NameDescribe
map_write