Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slob.c Create Date:2022-07-28 15:35:49
Last Modify:2022-05-20 09:26:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Encode the given size and next info into a free slob block s.

Proto:static void set_slob(slob_t *s, slobidx_t size, slob_t *next)

Type:void

Parameter:

TypeParameterName
slob_t *s
slobidx_tsize
slob_t *next
148  base = s & PAGE_MASK
149  offset = next - base
151  If size > 1 Then
152  units = size
153  units = offset
154  Else units = -offset
Caller
NameDescribe
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.