函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_mmap_policy_fault

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

返回类型:vm_fault_t

参数:

类型参数名称
struct vm_fault *vmf
457  plm等于private_data
461  如果FAULT_FLAG_xxx flags 按位与Fault was mkwrite of existing pte 按位或Fault was a write access 的值则返回:VM_FAULT_SIGBUS
464  offset等于Logical page offset based on vma 左移PAGE_SHIFT determines the page size
465  如果offset大于等于undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(len, PAGE_SIZE)则返回:VM_FAULT_SIGBUS
468  page等于vmalloc_to_page(data + offset)
469  get_page(page)
471  ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).等于page
473  返回:0