Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:50:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:special_mapping_fault

Proto:static vm_fault_t special_mapping_fault(struct vm_fault *vmf)

Type:vm_fault_t

Parameter:

TypeParameterName
struct vm_fault *vmf
3344  vma = Target VMA
3348  If Function pointers to deal with this struct. == legacy_special_mapping_vmops Then
3349  pages = was vm_pte (shared mem)
3350  Else
3351  sm = was vm_pte (shared mem)
3353  If fault Then Return 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  When pgoff && pages cycle pgoff--
3362  If pages Then
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  Return 0
3369  Return VM_FAULT_SIGBUS