iPXE
Data Fields
retry_timer Struct Reference

A retry timer. More...

#include <retry.h>

Data Fields

struct list_head list
 List of active timers. More...
 
unsigned int running
 Timer is currently running. More...
 
unsigned long timeout
 Timeout value (in ticks) More...
 
unsigned long min
 Minimum timeout value (in ticks), or zero to use default. More...
 
unsigned long max
 Maximum timeout value (in ticks), or zero to use default. More...
 
unsigned long start
 Start time (in ticks) More...
 
unsigned int count
 Retry count. More...
 
void(* expired )(struct retry_timer *timer, int over)
 Timer expired callback. More...
 
struct refcntrefcnt
 Reference counter. More...
 

Detailed Description

A retry timer.

Definition at line 21 of file retry.h.

Field Documentation

◆ list

struct list_head retry_timer::list

List of active timers.

Definition at line 23 of file retry.h.

Referenced by retry_poll().

◆ running

unsigned int retry_timer::running

Timer is currently running.

Definition at line 25 of file retry.h.

◆ timeout

unsigned long retry_timer::timeout

Timeout value (in ticks)

Definition at line 27 of file retry.h.

Referenced by peerblk_discovered().

◆ min

unsigned long retry_timer::min

Minimum timeout value (in ticks), or zero to use default.

The timeout will never be reduced below this value.

Definition at line 32 of file retry.h.

◆ max

unsigned long retry_timer::max

Maximum timeout value (in ticks), or zero to use default.

The timeout will be deemed permanent (according to the failure indicator passed to expired()) when it exceeds this value.

Definition at line 39 of file retry.h.

◆ start

unsigned long retry_timer::start

Start time (in ticks)

Definition at line 41 of file retry.h.

◆ count

unsigned int retry_timer::count

Retry count.

Definition at line 43 of file retry.h.

◆ expired

void( * retry_timer::expired) (struct retry_timer *timer, int over)

Timer expired callback.

Parameters
timerRetry timer
failFailure indicator

The timer will already be stopped when this method is called. The failure indicator will be True if the retry timeout has already exceeded max_timeout.

Definition at line 53 of file retry.h.

◆ refcnt

struct refcnt* retry_timer::refcnt

Reference counter.

If this interface is not part of a reference-counted object, this field may be NULL.

Definition at line 59 of file retry.h.


The documentation for this struct was generated from the following file: