函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static inline void *get_freelist(struct kmem_cache *s, struct page *page)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
struct page *page
2503  循环
2504  freelist等于 first free object
2505  counters等于 SLUB
2507  SLUB 等于counters
2508  VM_BUG_ON(!frozen)
2510  SLUB 等于objects
2511  frozen = freelist != NULL
2513  当非Interrupts must be disabled (for the fallback code to work right) 循环
2518  返回:freelist
调用者
名称描述
___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