函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:filemap_page_mkwrite

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

返回类型:vm_fault_t

参数:

类型参数名称
struct vm_fault *vmf
2673  page等于->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).
2674  inode等于file_inode(File we map to (can be NULL). )
2675  ret等于VM_FAULT_LOCKED
2677  sb_start_pagefault - get write access to a superblock from a page fault*@sb: the super we write to* When a process starts handling write page fault, it should embed the* operation into sb_start_pagefault() - sb_end_pagefault() pair to get
2678  file_update_time(File we map to (can be NULL). )
2679  lock_page may only be called if we have the page's inode pinned.
2680  如果 See page-flags.h for PAGE_MAPPING_FLAGS 不等于i_mapping
2681  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
2682  ret等于VM_FAULT_NOPAGE
2683  转到:out
2690  set_page_dirty(page)
2691  wait_for_stable_page(page)
2692  out :
2693  故障页面解除写访问
2694  返回:ret