Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tcp_inq

Proto:static inline int tcp_inq(struct sock *sk)

Type:int

Parameter:

TypeParameterName
struct sock *sk
2087  tp = tcp_sk(sk)
2090  If 1 << sk_state & (TCPF_SYN_SENT | TCPF_SYN_RECV) Then
2091  answ = 0
2092  Else if sock_flag(sk, SOCK_URGINLINE) || Not Saved octet of OOB data and control flags || The next routines deal with comparing 32 bit unsigned ints* and worry about wraparound (automatic with unsigned arithmetic). || Not The next routines deal with comparing 32 bit unsigned ints* and worry about wraparound (automatic with unsigned arithmetic). Then
2097  answ = What we want to receive next - Head of yet unread data
2100  If answ && sock_flag(sk, SOCK_DONE) Then answ--
2102  Else
2103  answ = Seq of received urgent pointer - Head of yet unread data
2106  Return answ