函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:23:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void free_partial(struct kmem_cache *s, struct kmem_cache_node *n)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
struct kmem_cache_node *n
3704  LIST_HEAD(discard)
3707  BUG_ON(已禁止中断())
3708  spin_lock_irq( & list_lock)
3710  如果非 SLUB
3711  remove_partial(n, page)
3712  添加链表项
3713  否则
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)
调用者
名称描述
__kmem_cache_shutdownRelease all resources used by a slab cache.