Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:49:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Release all resources used by a slab cache.

Proto:int __kmem_cache_shutdown(struct kmem_cache *s)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *s
3743  flush_all(s)
3746  Attempt to free all partial slabs on a node.* This is called from __kmem_cache_shutdown(). We must take list_lock* because sysfs file might still access partial list after the shutdowning.
3747  If nr_partial || slabs_node(s, node) Then Return 1
3750  sysfs_slab_remove(s)
3751  Return 0