Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct kmem_cache * | s | |
struct kmem_cache_node * | n |
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) |
3713 | Else |
3714 | list_slab_objects(s, page, "Objects remaining in %s on __kmem_cache_shutdown()") |
3718 | spin_unlock_irq( & list_lock) |
3721 | discard_slab(s, page) |
Name | Describe |
---|---|
__kmem_cache_shutdown | Release all resources used by a slab cache. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |