函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Must be called with iter->mutex held.

函数原型:static int tracing_wait_pipe(struct file *filp)

返回类型:int

参数:

类型参数名称
struct file *filp
6059  iter等于 needed for tty driver, and maybe others
6062 trace_empty(iter)循环
6064  如果f_flags按位与O_NONBLOCK
6065  返回:负EAGAIN
6077  如果非racer_tracing_is_on - show real state of ring buffer enabled*@tr : the trace array to know if ring buffer is enabled* Shows real state of the ring buffer if it is enabled or not.pos退出
6080  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
6082  ret等于wait_on_pipe(iter, 0)
6084  mutex_lock( & mutex)
6086  如果ret则返回:ret
6090  返回:1
调用者
名称描述
tracing_read_pipeConsumer reader.
tracing_splice_read_pipe