函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lay_file_read_end_pos - return the new read position*@read_pos: file read position*@buf: relay channel buffer*@count: number of bytes to be read

函数原型:static size_t relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count)

返回类型:size_t

参数:

类型参数名称
struct rchan_buf *buf
size_tread_pos
size_tcount
1102  subbuf_size等于 sub-buffer size
1103  n_subbufs等于 number of sub-buffers per buffer
1105  read_subbuf等于read_possubbuf_size
1106  padding等于padding counts per sub-buffer [read_subbuf]
1107  如果read_pos取模subbuf_sizecountpadding恒等于subbuf_sizeend_pos等于read_subbuf加1的和乘subbuf_size
1109  否则end_pos等于read_poscount
1111  如果end_pos大于等于subbuf_sizen_subbufsend_pos等于0
1114  返回:end_pos
调用者
名称描述
relay_file_read