函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Drop the inode semaphore and wait for a pipe event, atomically

函数原型:void pipe_wait(struct pipe_inode_info *pipe)

返回类型:void

参数:

类型参数名称
struct pipe_inode_info *pipe
111  DEFINE_WAIT(wait)
117  Note: we use "set_current_state()" _after_ the wait-queue add,* because we need a memory barrier there on SMP, so that any* wake-function that tests for the wait-queue being active* will be guaranteed to see waitqueue addition _or_ subsequent
118  pipe_unlock(pipe)
119  进程调度
120  sh_wait - clean up after waiting in a queue*@wq_head: waitqueue waited on*@wq_entry: wait descriptor* Sets current thread back to running state and removes* the wait descriptor from the given waitqueue if still* queued.
121  pipe_lock(pipe)
调用者
名称描述
wait_for_partner
splice_from_pipe_nextsplice_from_pipe_next - wait for some data to splice from*@pipe: pipe to splice from*@sd: information about the splice operation* Description:* This function will wait for some data and return a positive* value (one) if pipe buffers are available
wait_for_space
ipipe_prepMake sure there's data to read. Wait for input if we can, otherwise* return an appropriate error.
opipe_prepMake sure there's writeable room. Wait for room if we can, otherwise* return an appropriate error.