函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:创建高速缓存区

函数原型:struct kmem_cache *kmem_cache_create(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
564  返回:kmem_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.
调用者
名称描述
kmem_cache_oob
memcg_accounted_kmem_cache
kmem_cache_double_free
kmem_cache_invalid_free
do_kmem_cache_sizeTest kmem_cache with given parameters:
do_kmem_cache_rcu_persistentCheck that the data written to an RCU-allocated object survives* reallocation.
do_kmem_cache_size_bulk
btree_module_init
debug_objects_mem_initCalled after the kmem_caches are functional to setup a dedicated* cache pool, which has the SLAB_DEBUG_OBJECTS flag set. This flag* prevents that the debug code is called on kmem_cache_free() for the* debug tracker objects to avoid recursive calls.
sg_pool_init
proc_caches_init进程缓存初始化
uid_cache_init
cred_init任务信用系统初始化
init_posix_timersInitialize everything, well, just everything in Posix clocks/timers ;)
create_pid_cachepreates the kmem cache to allocate pids from.*@level: pid namespace level
audit_initInitialize audit support at boot time.
ptlock_cache_init
anon_vma_init匿名虚拟内存域初始化
numa_policy_init初始化NUMA的内存访问策略
khugepaged_init
create_cache
z3fold_create_poolz3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed.
biovec_init_slabs
elv_register
blk_dev_init
blk_ioc_init
bio_integrity_init
ordered_lsm_init
avc_initavc_init - Initialize the AVC.* Initialize the access vector cache.
integrity_iintcache_init
fcntl_init
inode_init
mnt_init
buffer_init
bdev_cache_init
eventpoll_init
userfaultfd_init
filelock_init
mbcache_init
dquot_init
dcookie_init
radix_tree_initradix树算法初始化
init_mqueue_fs
bio_find_or_create_slab
key_init内核密钥管理系统初始化
files_init