Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:25:39
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__pcpu_size_to_slot

Proto:static int __pcpu_size_to_slot(int size)

Type:int

Parameter:

TypeParameterName
intsize
222  highbit = ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last
223  Return max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(highbit - he slots are sorted by free bytes left, 1-31 bytes share the same slot + 2, 1)
Caller
NameDescribe
pcpu_size_to_slot
pcpu_setup_first_chunkpcpu_setup_first_chunk - initialize the first percpu chunk*@ai: pcpu_alloc_info describing how to percpu area is shaped*@base_addr: mapped address* Initialize the first percpu chunk which contains the kernel static* percpu area