Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:46:54
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void relay_reset(struct rchan *chan)

Type:void

Parameter:

TypeParameterName
struct rchan *chan
392  If Not chan Then Return
395  If One global buffer ? && (buf = per_cpu_ptr( per-cpu channel buffers , 0)) Then
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  Return
400  mutex_lock( & list of open channels, for cpu hotplug )
401  for_each_possible_cpu(i)
402  If buf = per_cpu_ptr( per-cpu channel buffers , i) Then __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.