函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\tcp.h Create Date:2022-07-27 07:40:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:@wake is one when sk_stream_write_space() calls us.* This sends EPOLLOUT only if notsent_bytes is half the limit.* This mimics the strategy used in sock_def_write_space().

函数原型:static inline bool tcp_stream_memory_free(const struct sock *sk, int wake)

返回类型:bool

参数:

类型参数名称
const struct sock *sk
intwake
1945  tp等于tcp_sk(sk)
1946  notsent_bytes等于READ_ONCE( Tail(+1) of data held in tcp send buffer )减READ_ONCE( Next sequence we send )
1949  返回:notsent_bytes左移wake位小于tcp_notsent_lowat(tp)