Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Drop the inode semaphore and wait for a pipe event, atomically

Proto:void pipe_wait(struct pipe_inode_info *pipe)

Type:void

Parameter:

TypeParameterName
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  schedule()
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)
Caller
NameDescribe
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.