Function report |
Source Code:mm\memblock.c |
Create Date:2022-07-28 15:10:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__next_mem_range_rev
Proto:void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))__next_mem_range_rev(u64 *idx, int nid, enum memblock_flags flags, struct memblock_type *type_a, struct memblock_type *type_b, phys_addr_t *out_start, phys_addr_t *out_end, int *out_nid)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u64 * | idx | |
| int | nid | |
| enum memblock_flags | flags | |
| struct memblock_type * | type_a | |
| struct memblock_type * | type_b | |
| phys_addr_t * | out_start | |
| phys_addr_t * | out_end | |
| int * | out_nid |
| 1117 | If WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\n") Then nid = NUMA_NO_NODE |
| 1120 | If idx == ULLONG_MAX Then |
| 1133 | m_nid = memblock_get_region_node(m) |
| 1135 | If should_skip_region(m, nid, flags) Then Continue |
| 1138 | If Not type_b Then |
| 1145 | idx_a-- |
| 1147 | Return |
| 1158 | r_end = If idx_b < cnt Then base Else PHYS_ADDR_MAX |
| 1169 | If out_start Then out_start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(m_start, r_start) |
| 1171 | If out_end Then out_end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(m_end, r_end) |
| 1177 | Else idx_b-- |
| 1180 | Return |
| 1185 | idx = ULLONG_MAX |
| 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 |