函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kmem_cache_alias

函数原型:struct kmem_cache *__kmem_cache_alias(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, void (*ctor)(void *))

返回类型:struct kmem_cache

参数:

类型参数名称
const char *name
unsigned intsize
unsigned intalign
slab_flags_tflags
void (*ctor
4277  s等于find_mergeable(size, align, flags, name, ctor)
4278  如果s
4279  Refcount for slab cache destroy 自加
4285  The size of an object without metadata 等于两数取大(The size of an object without metadata , size)
4286  Offset to metadata 等于两数取大(Offset to metadata , @a is a power of 2 value (size, *的长度))
4289  The size of an object without metadata 等于The size of an object without metadata
4290  Offset to metadata 等于两数取大(Offset to metadata , @a is a power of 2 value (size, *的长度))
4293  如果sysfs_slab_alias(s, name)则
4294  Refcount for slab cache destroy 自减
4295  s = NULL
4299  返回:s
调用者
名称描述
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.