Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void free_partial(struct kmem_cache *s, struct kmem_cache_node *n)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
struct kmem_cache_node *n
3704  LIST_HEAD(discard)
3707  BUG_ON(Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.())
3708  spin_lock_irq( & list_lock)
3710  If Not SLUB Then
3711  remove_partial(n, page)
3712  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
3713  Else
3714  list_slab_objects(s, page, "Objects remaining in %s on __kmem_cache_shutdown()")
3718  spin_unlock_irq( & list_lock)
3720  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(page, h, & discard, slab_list)
3721  discard_slab(s, page)
Caller
NameDescribe
__kmem_cache_shutdownRelease all resources used by a slab cache.