函数逻辑报告 |
Source Code:mm\memblock.c |
Create Date:2022-07-27 16:40:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:memblock_add_range
函数原型: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)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct memblock_type * | type | |
| phys_addr_t | base | |
| phys_addr_t | size | |
| int | nid | |
| enum memblock_flags | flags |
| 582 | bool insert = false |
| 588 | 如果非size则返回:0 |
| 592 | 如果size恒等于0则 |
| 593 | WARN_ON(cnt != 1 || total_size) |
| 597 | memblock_set_region_node( & regions[0], nid) |
| 598 | total_size等于size |
| 599 | 返回:0 |
| 601 | repeat : |
| 608 | nr_new等于0 |
| 627 | nr_new自加 |
| 645 | 如果非nr_new则返回:0 |
| 652 | 如果非insert则 |
| 656 | insert = true |
| 657 | 转到:repeat |
| 658 | 否则 |
| 660 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |