Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:44:51
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:slab_put_obj

Proto:static void slab_put_obj(struct kmem_cache *cachep, struct page *page, void *objp)

Type:void

Parameter:

TypeParameterName
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  If Not first free object Then first free object = objp + obj_offset(cachep)
2597  set_free_obj(page, SLAB , objnr)
Caller
NameDescribe
free_blockCaller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller