函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int sort_idmaps(struct uid_gid_map *map)

返回类型:int

参数:

类型参数名称
struct uid_gid_map *map
823  如果 64 bytes -- 1 cache line 小于等于UID_GID_MAP_MAX_BASE_EXTENTS则返回: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  如果非reverse则返回:负ENOMEM
838  sort(reverse, 64 bytes -- 1 cache line , sizeof(structuid_gid_extent), mp function to sort() reverse mappings , NULL)
841  返回:0
调用者
名称描述
map_write