Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:25:58 |
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 - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
Proto:static void pcpu_block_update(struct pcpu_block_md *block, int start, int end)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pcpu_block_md * | block | |
int | start | |
int | end |
607 | 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 , start) |
608 | If start == 0 Then size of free space alongthe left side of the block = contig |
611 | If end == al bits responsible for Then size of free space alongthe right side of the block = contig |
614 | If contig > contig hint for block Then |
616 | If start > lock relative startingposition of the contig hint Then |
617 | If contig hint for block > scan hint for block Then |
621 | Else if start < lock relative startingposition of the scan hint Then |
627 | scan hint for block = 0 |
629 | Else |
630 | scan hint for block = 0 |
633 | contig hint for block = contig |
634 | Else if contig == contig hint for block Then |
643 | Else if start > lock relative startingposition of the scan hint || contig hint for block > scan hint for block Then |
653 | Else |
659 | If start < lock relative startingposition of the contig hint && ( contig > scan hint for block || contig == scan hint for block && start > lock relative startingposition of the scan hint ) Then |
Name | Describe |
---|---|
pcpu_block_update_scan | pcpu_block_update_scan - update a block given a free area from a scan*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of free area* Finding the final allocation spot first goes through pcpu_find_block_fit()* to find a block that can hold the |
pcpu_chunk_refresh_hint | pcpu_chunk_refresh_hint - updates metadata about a chunk*@chunk: chunk of interest*@full_scan: if we should scan from the beginning* Iterates over the metadata blocks to find the largest contig area |
pcpu_block_refresh_hint | pcpu_block_refresh_hint*@chunk: chunk of interest*@index: index of the metadata block* Scans over the block beginning at first_free and updates the block* metadata accordingly. |
pcpu_block_update_hint_free | 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 |
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 |