Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:46:00
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kmem_cache_free_bulk

Proto:void kmem_cache_free_bulk(struct kmem_cache *orig_s, size_t size, void **p)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *orig_s
size_tsize
void **p
3754  local_irq_disable()
3755  When i < size cycle
3756  objp = p[i]
3758  If Not orig_s Then s = virt_to_cache(objp)
3760  Else s = cache_from_obj(orig_s, objp)
3762  If Not s Then Continue
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  If Not (Used for retrieving partial slabs, etc. & SLAB_DEBUG_OBJECTS) Then 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  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
Caller
NameDescribe
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