函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lay_file_read_start_pos - find the first available byte to read*@read_pos: file read position*@buf: relay channel buffer* If the @read_pos is in the middle of padding, return the* position of the first actually available byte, otherwise

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

返回类型:size_t

参数:

类型参数名称
size_tread_pos
struct rchan_buf *buf
1073  subbuf_size等于 sub-buffer size
1074  n_subbufs等于 number of sub-buffers per buffer
1075  consumed等于count of sub-buffers consumed 取模n_subbufs
1077  如果非read_posread_pos等于consumedsubbuf_sizeytes consumed in cur read subbuf
1079  read_subbuf等于read_possubbuf_size
1080  padding等于padding counts per sub-buffer [read_subbuf]
1081  padding_start等于read_subbuf加1的和乘subbuf_sizepadding
1082  padding_end等于read_subbuf加1的和乘subbuf_size
1083  如果read_pos大于等于padding_startread_pos小于padding_end
1084  read_subbuf等于read_subbuf加1的和取模n_subbufs
1085  read_pos等于read_subbufsubbuf_size
1088  返回:read_pos
调用者
名称描述
relay_file_read