函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-27 12:52:06
Last Modify:2020-03-17 19:20:22 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lay_flush - close the channel*@chan: the channel* Flushes all channel buffers, i.e. forces buffer switch.

函数原型:void relay_flush(struct rchan *chan)

返回类型:void

参数:

类型参数名称
struct rchan *chan
872  如果非chan则返回
875  如果 One global buffer ? buf等于per_cpu_ptr( per-cpu channel buffers , 0)则
876  lay_switch_subbuf - switch to a new sub-buffer*@buf: channel buffer*@length: size of current event* Returns either the length passed in or 0 if full.* Performs sub-buffer-switch tasks such as invoking callbacks,
877  返回
880  mutex_lock( & list of open channels, for cpu hotplug )
881  遍历可用CPU(i)
882  如果buf等于per_cpu_ptr( per-cpu channel buffers , i)则lay_switch_subbuf - switch to a new sub-buffer*@buf: channel buffer*@length: size of current event* Returns either the length passed in or 0 if full.* Performs sub-buffer-switch tasks such as invoking callbacks,
884  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.