函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:18:44
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:slab_put_obj

函数原型:static void slab_put_obj(struct kmem_cache *cachep, struct page *page, void *objp)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct page *page
void *objp
2580  objnr等于We want to avoid an expensive divide : (offset / cache->size)* Using the fact that size is a constant for a particular cache,* we can replace (offset / cache->size) by* reciprocal_divide(offset, cache->reciprocal_buffer_size)
2593  SLAB 自减
2594  如果非 first free object first free object 等于objpobj_offset(cachep)
2597  set_free_obj(page, SLAB , objnr)
调用者
名称描述
free_blockCaller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller