函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:slab_destroy - destroy and release all objects in a slab*@cachep: cache pointer being destroyed*@page: page pointer being destroyed* Destroy all the objs in a slab page, and release the mem back to the system.

函数原型:static void slab_destroy(struct kmem_cache *cachep, struct page *page)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct page *page
1663  freelist等于 first free object
1664  slab_destroy_debugcheck(cachep, page)
1665  如果此条件成立可能性小(为编译器优化)(Used for retrieving partial slabs, etc. & Defer freeing slabs to RCU )则Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
1667  否则Interface to system's page release.
1674  如果OFF_SLAB(cachep)则kmem_cache_free(freelist_cache, freelist)
调用者
名称描述
slabs_destroy
drain_freelist