函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memcg_accounted_kmem_cache

函数原型:static noinline void __init memcg_accounted_kmem_cache(void)

返回类型:void

参数:

409  size等于200
412  cache等于创建高速缓存区
413  如果非cache
414  打印错误信息("Cache allocation failed\n")
415  返回
418  打印信息("allocate memcg accounted object\n")
423 i小于5循环
424  p等于kmem_cache_alloc(cache, GFP_KERNEL)
425  如果非p则转到:free_cache
428  kmem_cache_free(cache, p)
429  msleep - sleep safely even with waitqueue interruptions*@msecs: Time in milliseconds to sleep for
432  free_cache :
433  删除高速缓存区
调用者
名称描述
kmalloc_tests_init