/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux/sunrpc
NameSizeModeActions
addr.h50630644editdlrm
auth.h61050644editdlrm
auth_gss.h23690644editdlrm
bc_xprt.h28470644editdlrm
cache.h91440644editdlrm
clnt.h87910644editdlrm
debug.h28290644editdlrm
gss_api.h45600644editdlrm
gss_asn1.h31880644editdlrm
gss_err.h60250644editdlrm
gss_krb5.h114260644editdlrm
gss_krb5_enctypes.h12530644editdlrm
metrics.h37710644editdlrm
msg_prot.h62220644editdlrm
rpc_pipe_fs.h39470644editdlrm
rpc_rdma.h62190644editdlrm
rpc_rdma_cid.h6220644editdlrm
sched.h98940644editdlrm
stats.h20550644editdlrm
svc.h199360644editdlrm
svcauth.h62960644editdlrm
svcauth_gss.h7820644editdlrm
svcsock.h21260644editdlrm
svc_rdma.h79760644editdlrm
svc_rdma_pcl.h32080644editdlrm
svc_xprt.h72360644editdlrm
timer.h11720644editdlrm
types.h4970644editdlrm
xdr.h213060644editdlrm
xprt.h167850644editdlrm
xprtmultipath.h22950644editdlrm
xprtrdma.h30230644editdlrm
xprtsock.h17700644editdlrm
Edit: /usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux/sunrpc/timer.h (1172B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/include/linux/sunrpc/timer.h * * Declarations for the RPC transport timer. * * Copyright (C) 2002 Trond Myklebust */ #ifndef _LINUX_SUNRPC_TIMER_H #define _LINUX_SUNRPC_TIMER_H #include 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 */