函数逻辑报告 |
Source Code:mm\memory-failure.c |
Create Date:2022-07-27 17:53:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Schedule a process for later kill.* Uses GFP_ATOMIC allocations to avoid potential recursions in the VM.
函数原型:static void add_to_kill(struct task_struct *tsk, struct page *p, struct vm_area_struct *vma, struct list_head *to_kill)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | tsk | |
struct page * | p | |
struct vm_area_struct * | vma | |
struct list_head * | to_kill |
314 | 如果非tk则 |
315 | 打印错误信息("Memory failure: Out of memory while machine check handling\n") |
316 | 返回 |
319 | addr等于At what user virtual address is page expected in vma?* Caller should check the page is actually part of the vma. |
320 | 如果is_zone_device_page(p)则size_shift等于dev_pagemap_mapping_shift(p, vma) |
336 | 打印信息("Memory failure: Unable to find user space address %lx in %s\n", page_to_pfn(p), comm) |
338 | 否则如果size_shift恒等于0则 |
339 | 释放内存 |
340 | 返回 |
343 | get_task_struct(tsk) |
345 | 添加链表项 |
名称 | 描述 |
---|---|
collect_procs_anon | Collect processes when the error hit an anonymous page. |
collect_procs_file | Collect processes when the error hit a file mapped page. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |