Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Reset the retransmission timer

Proto:static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, unsigned long when, const unsigned long max_when)

Type:void

Parameter:

TypeParameterName
struct sock *sk
const intwhat
unsigned longwhen
const unsigned longmax_when
221  icsk = inet_csk(sk)
223  If when > max_when Then
224  pr_debug("reset_xmit_timer: sk=%p %d when=0x%lx, caller=%p\n", sk, what, when, (void * )_THIS_IP_)
226  when = max_when
229  If what == Retransmit timer || what == Zero window probe timer || what == Early retransmit timer || what == Tail loss probe timer || what == Reordering timer Then
232  icsk_pending = what
233  icsk_timeout = jiffies + when
234  sk_reset_timer(sk, & icsk_retransmit_timer, icsk_timeout)
235  Else if what == Delayed ack timer Then
236  ACK is pending |= ICSK_ACK_TIMER
237  Currently scheduled timeout = jiffies + when
238  sk_reset_timer(sk, & icsk_delack_timer, Currently scheduled timeout )
239  Else
240  pr_debug("inet_csk BUG: unknown timer value\n")