Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:26:31 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_free_area - frees the corresponding offset*@chunk: chunk of interest*@off: addr offset into chunk* This function determines the size of an allocation to free using* the boundary bitmap and clears the allocation map.
Proto:static void pcpu_free_area(struct pcpu_chunk *chunk, int off)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pcpu_chunk * | chunk | |
int | off |
1248 | lockdep_assert_held( & pcpu_lock) |
1249 | pcpu_stats_area_dealloc(chunk) |
1251 | oslot = pcpu_chunk_slot(chunk) |
1253 | bit_off = off / PCPU_MIN_ALLOC_SIZE |
1259 | bitmap_clear( allocation map , bit_off, bits) |
1262 | free bytes in the chunk += bits * PCPU_MIN_ALLOC_SIZE |
1265 | lock position of first free = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(lock position of first free , 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 |
free_percpu | free previously allocated percpu memory |
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 |