函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void relay_subbufs_consumed(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)

返回类型:void

参数:

类型参数名称
struct rchan *chan
unsigned intcpu
size_tsubbufs_consumed
814  如果非chancpu大于等于CPU数量则返回
817  buf等于per_cpu_ptr( per-cpu channel buffers , cpu)
818  如果非bufsubbufs_consumed大于 number of sub-buffers per buffer 则返回
821  如果subbufs_consumed大于count of sub-buffers produced count of sub-buffers consumed count of sub-buffers consumed 等于count of sub-buffers produced
823  否则count of sub-buffers consumed 加等于subbufs_consumed
调用者
名称描述
relay_file_read_consumelay_file_read_consume - update the consumed count for the buffer
relay_consume_bytes