Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lay_flush - close the channel*@chan: the channel* Flushes all channel buffers, i.e. forces buffer switch.

Proto:void relay_flush(struct rchan *chan)

Type:void

Parameter:

TypeParameterName
struct rchan *chan
872  If Not chan Then Return
875  If One global buffer ? && (buf = per_cpu_ptr( per-cpu channel buffers , 0)) Then
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  Return
880  mutex_lock( & list of open channels, for cpu hotplug )
881  for_each_possible_cpu(i)
882  If buf = per_cpu_ptr( per-cpu channel buffers , i) Then 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.