函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lay_reset - reset the channel*@chan: the channel* This has the effect of erasing all data from all channel buffers* and restarting the channel in its initial state. The buffers* are not freed, so any mappings are still in effect.* NOTE

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

返回类型:void

参数:

类型参数名称
struct rchan *chan
392  如果非chan则返回
395  如果 One global buffer ? buf等于per_cpu_ptr( per-cpu channel buffers , 0)则
396  __relay_reset - reset a channel buffer*@buf: the channel buffer*@init: 1 if this is a first-time initialization* See relay_reset() for description of effect.
397  返回
400  mutex_lock( & list of open channels, for cpu hotplug )
401  遍历可用CPU(i)
402  如果buf等于per_cpu_ptr( per-cpu channel buffers , i)则__relay_reset - reset a channel buffer*@buf: the channel buffer*@init: 1 if this is a first-time initialization* See relay_reset() for description of effect.
404  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.