Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__kmem_cache_alias

Proto:struct kmem_cache *__kmem_cache_alias(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, void (*ctor)(void *))

Type:struct kmem_cache

Parameter:

TypeParameterName
const char *name
unsigned intsize
unsigned intalign
slab_flags_tflags
void (*ctor
4277  s = find_mergeable(size, align, flags, name, ctor)
4278  If s Then
4279  Refcount for slab cache destroy ++
4285  The size of an object without metadata = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(The size of an object without metadata , size)
4286  Offset to metadata = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(Offset to metadata , @a is a power of 2 value (size, size of * ))
4289  The size of an object without metadata = The size of an object without metadata
4290  Offset to metadata = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(Offset to metadata , @a is a power of 2 value (size, size of * ))
4293  If sysfs_slab_alias(s, name) Then
4294  Refcount for slab cache destroy --
4295  s = NULL
4299  Return s
Caller
NameDescribe
kmem_cache_create_usercopykmem_cache_create_usercopy - Create a cache with a region suitable* for copying to userspace*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.