函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 16:56:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Delete the specified range [f, t) from the reserve map. If the* t parameter is LONG_MAX, this indicates that ALL regions after f* should be deleted. Locate the regions which intersect [f, t)* and either trim, delete or split the existing regions.
函数原型:static long region_del(struct resv_map *resv, long f, long t)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct resv_map * | resv | |
| long | f | |
| long | t |
| 443 | struct file_region * nrg = NULL |
| 444 | del等于0 |
| 446 | retry : |
| 447 | 加自旋锁 |
| 467 | 如果非nrg且region_cache_count大于adds_in_progress则 |
| 472 | 删除链表项 |
| 473 | region_cache_count自减 |
| 476 | 如果非nrg则 |
| 489 | 初始化链表头 |
| 494 | 添加链表项 |
| 495 | nrg = NULL |
| 496 | 退出 |
| 509 | 否则 |
| 515 | 自旋锁解锁 |
| 516 | 释放内存 |
| 517 | 返回:del |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |