Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void slab_destroy(struct kmem_cache *cachep, struct page *page)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct page *page
1663  freelist = first free object
1664  slab_destroy_debugcheck(cachep, page)
1665  If Value for the false possibility is greater at compile time(Used for retrieving partial slabs, etc. & Defer freeing slabs to RCU ) Then 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  Else Interface to system's page release.
1674  If OFF_SLAB(cachep) Then kmem_cache_free(freelist_cache, freelist)
Caller
NameDescribe
slabs_destroy
drain_freelist