Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\tcp.h Create Date:2022-07-28 06:43:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:@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().

Proto:static inline bool tcp_stream_memory_free(const struct sock *sk, int wake)

Type:bool

Parameter:

TypeParameterName
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  Return notsent_bytes << wake < tcp_notsent_lowat(tp)