/usr/src/linux-headers-5.15.0-181/include/linux/sunrpc
NameSizeModeActions
addr.h50630644editdlrm
auth.h61050644editdlrm
auth_gss.h23690644editdlrm
bc_xprt.h28470644editdlrm
cache.h91500644editdlrm
clnt.h85780644editdlrm
debug.h28290644editdlrm
gss_api.h45600644editdlrm
gss_asn1.h31880644editdlrm
gss_err.h60250644editdlrm
gss_krb5.h111290644editdlrm
gss_krb5_enctypes.h11610644editdlrm
metrics.h37710644editdlrm
msg_prot.h62220644editdlrm
rpc_pipe_fs.h39470644editdlrm
rpc_rdma.h62190644editdlrm
rpc_rdma_cid.h6220644editdlrm
sched.h101960644editdlrm
stats.h20480644editdlrm
svc.h190220644editdlrm
svcauth.h62960644editdlrm
svcauth_gss.h7820644editdlrm
svcsock.h21880644editdlrm
svc_rdma.h77990644editdlrm
svc_rdma_pcl.h32080644editdlrm
svc_xprt.h72950644editdlrm
timer.h11720644editdlrm
types.h4970644editdlrm
xdr.h214890644editdlrm
xprt.h161210644editdlrm
xprtmultipath.h22950644editdlrm
xprtrdma.h30230644editdlrm
xprtsock.h18470644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/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 */