Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:remove_partial

Proto:static inline void remove_partial(struct kmem_cache_node *n, struct page *page)

Type:void

Parameter:

TypeParameterName
struct kmem_cache_node *n
struct page *page
1779  lockdep_assert_held( & list_lock)
1780  deletes entry from list
1781  nr_partial--
Caller
NameDescribe
acquire_slabRemove slab from the partial list, freeze it and* return the pointer to the freelist.* Returns a list of objects or NULL if it fails.
deactivate_slabRemove the cpu slab
__slab_freeSlow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item
free_partialAttempt 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.