Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int insert_extent(struct uid_gid_map *map, struct uid_gid_extent *extent)

Type:int

Parameter:

TypeParameterName
struct uid_gid_map *map
struct uid_gid_extent *extent
757  If 64 bytes -- 1 cache line == UID_GID_MAP_MAX_BASE_EXTENTS Then
761  forward = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
764  If Not forward Then Return -ENOMEM
770  No 3D Now!(forward, extent, 64 bytes -- 1 cache line * size of extent[0] )
773  forward = forward
774  reverse = NULL
777  If 64 bytes -- 1 cache line < UID_GID_MAP_MAX_BASE_EXTENTS Then dest = extent[ 64 bytes -- 1 cache line ]
779  Else dest = forward[ 64 bytes -- 1 cache line ]
782  dest = extent
783  64 bytes -- 1 cache line ++
784  Return 0
Caller
NameDescribe
map_write