Function report |
Source Code:mm\memblock.c |
Create Date:2022-07-28 15:10:27 |
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
Proto:void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))__next_mem_range(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 |
1020 | If WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\n") Then nid = NUMA_NO_NODE |
1029 | m_nid = memblock_get_region_node(m) |
1031 | If should_skip_region(m, nid, flags) Then Continue |
1034 | If Not type_b Then |
1041 | idx_a++ |
1043 | Return |
1054 | r_end = If idx_b < cnt Then base Else PHYS_ADDR_MAX |
1065 | 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) |
1068 | 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) |
1078 | Else idx_b++ |
1081 | Return |
1087 | 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 |