函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:special_mapping_fault

函数原型:static vm_fault_t special_mapping_fault(struct vm_fault *vmf)

返回类型:vm_fault_t

参数:

类型参数名称
struct vm_fault *vmf
3344  vma等于Target VMA
3348  如果Function pointers to deal with this struct. 恒等于legacy_special_mapping_vmops
3349  pages等于was vm_pte (shared mem)
3350  否则
3351  sm等于was vm_pte (shared mem)
3353  如果fault则返回:fault(sm, Target VMA , vmf)
3356  pages等于* If .fault is not provided, this points to a * NULL-terminated array of pages that back the special mapping. * This must not be NULL unless .fault is provided.
3359 pgoffpages循环pgoff自减
3362  如果pages
3363  page等于pages
3364  get_page(page)
3365  ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).等于page
3366  返回:0
3369  返回:VM_FAULT_SIGBUS