26 if (
s_e[i].age < best->age) best = &
s_e[i];
static entry_t * slot(void)
void ackc_finish(uint8_t op, uint8_t seq, uint8_t result, uint8_t reason)
Completes the entry (or creates it if it was evicted meanwhile).
static entry_t * find(uint8_t op, uint8_t seq)
uint8_t ackc_begin(uint8_t op, uint8_t seq, uint8_t *result, uint8_t *reason)
Looks up (op, seq).
static entry_t s_e[ACK_CACHE_LEN]
Last (op, seq) -> ACK pairs (HANDOVER_FW.md ยง5, "Sequence and ACK rules").
#define ACK_CACHE_LEN
>= 16 required
static void result(const fc_cmd_t *c, uint8_t res, uint8_t why)