Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:26:22 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_find_block_fit - finds the block index to start searching*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE bytes)*@pop_only: use populated regions only* Given a chunk and an
Proto:static int pcpu_find_block_fit(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct pcpu_chunk * | chunk | |
int | alloc_bits | |
size_t | align | |
bool | pop_only |
1089 | bit_off = @a is a power of 2 value (lock relative startingposition of the contig hint , align) - lock relative startingposition of the contig hint |
1091 | If bit_off + alloc_bits > contig hint for block Then Return -1 |
1095 | bits = 0 |
1102 | bits = 0 |
1108 | Return bit_off |
Name | Describe |
---|---|
pcpu_alloc | pcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |