函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sert_extent - Safely insert a new idmap extent into struct uid_gid_map.* Takes care to allocate a 4K block of memory if the number of mappings exceeds* UID_GID_MAP_MAX_BASE_EXTENTS.

函数原型:static int insert_extent(struct uid_gid_map *map, struct uid_gid_extent *extent)

返回类型:int

参数:

类型参数名称
struct uid_gid_map *map
struct uid_gid_extent *extent
757  如果 64 bytes -- 1 cache line 恒等于UID_GID_MAP_MAX_BASE_EXTENTS
761  forward等于分配数组内存
764  如果非forward则返回:负ENOMEM
770  内存复制(forward, extent, 64 bytes -- 1 cache line * extent[0]的长度)
773  forward等于forward
774  reverse = NULL
777  如果 64 bytes -- 1 cache line 小于UID_GID_MAP_MAX_BASE_EXTENTSdest等于extent[ 64 bytes -- 1 cache line ]
779  否则dest等于forward[ 64 bytes -- 1 cache line ]
782  dest等于extent
783  64 bytes -- 1 cache line 自加
784  返回:0
调用者
名称描述
map_write