函数逻辑报告 | 
Source Code:mm\memcontrol.c | 
Create Date:2022-07-27 17:47:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:get_mctgt_type - get target type of moving charge*@vma: the vma the pte to be checked belongs*@addr: the address corresponding to the pte to be checked*@ptent: the pte to be checked*@target: the pointer the target page or swap ent will be stored(can be
函数原型:static enum mc_target_type get_mctgt_type(struct vm_area_struct *vma, unsigned long addr, pte_t ptent, union mc_target *target)
返回类型:enum mc_target_type
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct vm_area_struct * | vma | |
| unsigned long | addr | |
| pte_t | ptent | |
| union mc_target * | target | 
| 5400 | ret等于MC_TARGET_NONE | 
| 5401 | swp_entry_t ent = {val = 0} | 
| 5403 | 如果pte_present(ptent)则page等于mc_handle_present_pte(vma, addr, ptent) | 
| 5405 | 否则如果heck whether a pte points to a swap entry 则page等于mc_handle_swap_pte(vma, ptent, & ent) | 
| 5412 | 如果page则 | 
| 5418 | 如果mem_cgroup恒等于from则 | 
| 5419 | ret等于MC_TARGET_PAGE | 
| 5420 | 如果is_device_private_page(page)则ret等于MC_TARGET_DEVICE | 
| 5434 | ret等于MC_TARGET_SWAP | 
| 5438 | 返回:ret | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |