函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:walk_page_vma

函数原型:int walk_page_vma(struct vm_area_struct *vma, const struct mm_walk_ops *ops, void *private)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
const struct mm_walk_ops *ops
void *private
375  struct mm_walk walk = {ops = ops, mm = The address space we belong to. , vma = vma, private = private, }
383  如果非mm则返回:负EINVAL
386  lockdep_assert_held( & mmap_sem)
388  err等于Decide whether we really walk over the current vma on [@start, @end)* or skip it via the returned value. Return 0 if we do walk over the* current vma, and return 1 if we skip the vma. Negative values means* error, where we abort the current walk.
389  如果err大于0则返回:0
391  如果err小于0则返回:err
393  返回:__walk_page_range(Our start address within vm_mm. , The first byte after our end addresswithin vm_mm. , & walk)