函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:47:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mc_handle_file_pte

函数原型:static struct page *mc_handle_file_pte(struct vm_area_struct *vma, unsigned long addr, pte_t ptent, swp_entry_t *entry)

返回类型:struct page

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longaddr
pte_tptent
swp_entry_t *entry
5241  struct page * page = NULL
5245  如果非File we map to (can be NULL). 则返回:NULL
5247  如果非flags按位与MOVE_FILE的值则返回:NULL
5250  mapping等于f_mapping
5251  pgoff等于linear_page_index(vma, addr)
5268  page等于d_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index* Looks up the page cache slot at @mapping & @offset. If there is a* page cache page, it is returned with an increased refcount.
5270  返回:page
调用者
名称描述
get_mctgt_typeget_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