Lines Matching full:timeout
18 * @brief Network long timeout primitives and helpers
19 * @defgroup net_timeout Network long timeout primitives and helpers
62 * timeout event.
72 /** Portion of remaining timeout that does not exceed
89 /** @brief Configure a network timeout structure.
91 * @param timeout a pointer to the timeout state.
93 * @param lifetime the duration of the timeout in seconds.
95 * @param now the time at which the timeout started counting down, in
98 void net_timeout_set(struct net_timeout *timeout,
102 /** @brief Return the 64-bit system time at which the timeout will complete.
107 * @param timeout state a pointer to the timeout state, initialized by
113 * @return the value of k_uptime_get() at which the timeout will expire.
115 int64_t net_timeout_deadline(const struct net_timeout *timeout,
118 /** @brief Calculate the remaining time to the timeout in whole seconds.
120 * @note This function rounds the remaining time down, i.e. if the timeout
126 * @param timeout a pointer to the timeout state
132 * @retval 0 if the timeout has completed.
133 * @retval positive the remaining duration of the timeout, in seconds.
135 uint32_t net_timeout_remaining(const struct net_timeout *timeout,
142 * representable delay, and (2) determine that either the timeout has
146 * @param timeout a pointer to the timeout state
152 * @retval 0 if the timeout has completed
153 * @retval positive the maximum delay until the state of this timeout should
156 uint32_t net_timeout_evaluate(struct net_timeout *timeout,