函数逻辑报告 |
Source Code:kernel\fork.c |
Create Date:2022-07-27 09:57:15 |
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:check_mm
函数原型:static void check_mm(struct mm_struct *mm)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mm_struct * | mm |
| 660 | BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied* error message.*@condition: the condition which the compiler should know is false.* See BUILD_BUG_ON for description.(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(resident_page_types) != NR_MM_COUNTERS, "Please make sure 'struct resident_page_types[]' is updated as well") |
| 663 | 以i小于NR_MM_COUNTERS循环 |
| 664 | x等于atomic_long_read( & count[i]) |
| 666 | 如果此条件成立可能性小(为编译器优化)(x)则打印警报信息("BUG: Bad rss-counter state mm:%p type:%s val:%ld\n", mm, resident_page_types[i], x) |
| 671 | 如果mm_pgtables_bytes(mm)则打印警报信息("BUG: non-zero pgtables_bytes on freeing mm: %ld\n", mm_pgtables_bytes(mm)) |
| 名称 | 描述 |
|---|---|
| __mmdrop | Called when the last reference to the mm* is dropped: either by a lazy thread or by* mmput. Free the page directory and the mm. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |