Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:26:18 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_block_update_hint_free - updates the block hints on the free path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. This avoids a blind block
Proto:static void pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pcpu_chunk * | chunk | |
int | bit_off | |
int | bits |
934 | nr_empty_pages = 0 |
947 | e_index = pcpu_off_to_block_index(bit_off + bits - 1) |
948 | s_off = pcpu_off_to_block_off(bit_off) |
949 | e_off = pcpu_off_to_block_off(bit_off + bits - 1) + 1 |
951 | s_block = metadata blocks + s_index |
952 | e_block = metadata blocks + e_index |
965 | If s_off == contig hint for block + lock relative startingposition of the contig hint Then |
967 | Else |
980 | If e_off == lock relative startingposition of the contig hint Then end = lock relative startingposition of the contig hint + contig hint for block |
982 | Else end = Find the next set bit in a memory region. |
987 | e_off = If s_index == e_index Then end Else PCPU_BITMAP_BLOCK_BITS |
988 | If Not start && e_off == PCPU_BITMAP_BLOCK_BITS Then nr_empty_pages++ |
995 | If end == PCPU_BITMAP_BLOCK_BITS Then nr_empty_pages++ |
1000 | nr_empty_pages += e_index - s_index - 1 |
1002 | lock position of first free = 0 |
1003 | scan hint for block = 0 |
Name | Describe |
---|---|
pcpu_free_area | 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. |
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 |