函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dev_pagemap_mapping_shift

函数原型:static unsigned long dev_pagemap_mapping_shift(struct page *page, struct vm_area_struct *vma)

返回类型:unsigned long

参数:

类型参数名称
struct page *page
struct vm_area_struct *vma
267  address等于vma_address(page, vma)
274  pgd等于a shortcut to get a pgd_t in a given mm(The address space we belong to. , address)
275  如果非pgd_present( * pgd)则返回:0
277  p4d等于p4d_offset(pgd, address)
278  如果非p4d_present( * p4d)则返回:0
280  pud等于pud_offset(p4d, address)
281  如果非pud_present( * pud)则返回:0
283  如果pud_devmap( * pud)则返回:PUD_SHIFT
285  pmd等于pmd_offset(pud, address)
286  如果非pmd_present( * pmd)则返回:0
288  如果pmd_devmap( * pmd)则返回:PMD_SHIFT
290  pte等于pte_offset_map(pmd, address)
291  如果非pte_present( * pte)则返回:0
293  如果pte_devmap( * pte)则返回:PAGE_SHIFT determines the page size
295  返回:0
调用者
名称描述
add_to_killSchedule a process for later kill.* Uses GFP_ATOMIC allocations to avoid potential recursions in the VM.