函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\splice.c Create Date:2022-07-29 10:42:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check whether the contents of buf is OK to access. Since the content* is a page cache page, IO may be in flight.

函数原型:static int page_cache_pipe_buf_confirm(struct pipe_inode_info *pipe, struct pipe_buffer *buf)

返回类型:int

参数:

类型参数名称
struct pipe_inode_info *pipe
struct pipe_buffer *buf
106  page等于page
109  如果非PageUptodate(page)则
110  lock_page may only be called if we have the page's inode pinned.
117  err等于负ENODATA
118  转到:error
124  如果非PageUptodate(page)则
125  err等于负EIO
126  转到:error
132  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.
135  返回:0
136  error :
137  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.
138  返回:err