Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check the page->freelist of a page and either transfer the freelist to the* per cpu freelist or deactivate the page.* The page is still frozen if the return value is not NULL.* If this function returns NULL then the page has been unfrozen.

Proto:static inline void *get_freelist(struct kmem_cache *s, struct page *page)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
struct page *page
2503  Do
2504  freelist = first free object
2505  counters = SLUB
2507  SLUB = counters
2508  VM_BUG_ON(!frozen)
2510  SLUB = objects
2511  frozen = freelist != NULL
2513  When Not Interrupts must be disabled (for the fallback code to work right) cycle
2518  Return freelist
Caller
NameDescribe
___slab_allocSlow path. The lockless freelist is empty or we need to perform* debugging duties.* Processing is still very fast if new objects have been freed to the* regular freelist. In that case we simply take over the regular freelist