函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slob.c Create Date:2022-07-27 17:09:12
Last Modify:2022-05-20 09:26:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Encode the given size and next info into a free slob block s.

函数原型:static void set_slob(slob_t *s, slobidx_t size, slob_t *next)

返回类型:void

参数:

类型参数名称
slob_t *s
slobidx_tsize
slob_t *next
148  base等于s按位与PAGE_MASK
149  offset等于nextbase
151  如果size大于1则
152  units等于size
153  units等于offset
154  否则units等于负offset
调用者
名称描述
slob_page_allocslob_page_alloc() - Allocate a slob block within a given slob_page sp.*@sp: Page to look in.*@size: Size of the allocation.*@align: Allocation alignment.*@align_offset: Offset in the allocated block that will be aligned.
slob_allocslob_alloc: entry point into the slob allocator.
slob_freeslob_free: entry point into the slob allocator.