Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\slub_def.h Create Date:2022-07-28 14:03:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:nearest_obj

Proto:static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, void *x)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cache
struct page *page
void *x
176  object = x - (x - page_address(page)) % The size of an object including metadata
177  last_object = page_address(page) + (objects - 1) * The size of an object including metadata
179  result = If Value for the false possibility is greater at compile time(object > last_object) Then last_object Else object
181  result = fixup_red_left(cache, result)
182  Return result
Caller
NameDescribe
print_address_description