Function report | 
Source Code:mm\memblock.c | 
Create Date:2022-07-28 15:10:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:memblock_add_range
Proto:int __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_add_range(struct memblock_type *type, phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct memblock_type * | type | |
| phys_addr_t | base | |
| phys_addr_t | size | |
| int | nid | |
| enum memblock_flags | flags | 
| 582 | bool insert = false | 
| 588 | If Not size Then Return 0 | 
| 592 | If size == 0 Then | 
| 593 | WARN_ON(cnt != 1 || total_size) | 
| 597 | memblock_set_region_node( & regions[0], nid) | 
| 598 | total_size = size | 
| 599 | Return 0 | 
| 601 | repeat : | 
| 608 | nr_new = 0 | 
| 627 | nr_new++ | 
| 634 | base = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(rend, end) | 
| 645 | If Not nr_new Then Return 0 | 
| 652 | If Not insert Then | 
| 656 | insert = true | 
| 657 | Go to repeat | 
| 658 | Else | 
| 660 | Return 0 | 
| Name | Describe | 
|---|---|
| memblock_add_node | |
| memblock_add | |
| memblock_reserve | 
| 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  |