函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:19:54
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kmem_cache_free_bulk

函数原型:void kmem_cache_free_bulk(struct kmem_cache *orig_s, size_t size, void **p)

返回类型:void

参数:

类型参数名称
struct kmem_cache *orig_s
size_tsize
void **p
3754  禁止中断()
3755 i小于size循环
3756  objp等于p[i]
3758  如果非orig_ss等于virt_to_cache(objp)
3760  否则s等于cache_from_obj(orig_s, objp)
3762  如果非s则继续下一循环
3765  Called when kernel memory is freed (or unmapped), or if a lock* is destroyed or reinitialized - this code checks whether there is* any held lock in the memory range of to :
3766  如果非Used for retrieving partial slabs, etc. 按位与SLAB_DEBUG_OBJECTS的值则debug_check_no_obj_freed(objp, The size of an object without metadata )
3769  Release an obj back to its cache. If the obj has a constructed state, it must* be in this state _before_ it is released. Called with disabled ints.
3771  开中断()
调用者
名称描述
kfree_bulkCaller must not use kfree_bulk() on memory not originally allocated* by kmalloc(), because the SLOB allocator cannot handle this.
do_kmem_cache_sizeTest kmem_cache with given parameters:
do_kmem_cache_size_bulk