Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lay_subbufs_consumed - update the buffer's sub-buffers-consumed count*@chan: the channel*@cpu: the cpu associated with the channel buffer to update*@subbufs_consumed: number of sub-buffers to add to current buf's count

Proto:void relay_subbufs_consumed(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)

Type:void

Parameter:

TypeParameterName
struct rchan *chan
unsigned intcpu
size_tsubbufs_consumed
814  If Not chan || cpu >= Places which use this should consider cpumask_var_t. Then Return
817  buf = per_cpu_ptr( per-cpu channel buffers , cpu)
818  If Not buf || subbufs_consumed > number of sub-buffers per buffer Then Return
821  If subbufs_consumed > count of sub-buffers produced - count of sub-buffers consumed Then count of sub-buffers consumed = count of sub-buffers produced
823  Else count of sub-buffers consumed += subbufs_consumed
Caller
NameDescribe
relay_file_read_consumelay_file_read_consume - update the consumed count for the buffer
relay_consume_bytes