iPXE
Functions
sync.h File Reference

Wait for pending operations to complete. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
int sync (unsigned long timeout)
 Wait for pending operations to complete. More...
 

Detailed Description

Wait for pending operations to complete.

Definition in file sync.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ sync()

int sync ( unsigned long  timeout)

Wait for pending operations to complete.

Parameters
timeoutTimeout period, in ticks (0=indefinite)
Return values
rcReturn status code

Definition at line 73 of file sync.c.

73  {
74 
75  /* Attach synchroniser and wait for completion */
77  return monojob_wait ( NULL, timeout );
78 }
int monojob_wait(const char *string, unsigned long timeout)
Wait for single foreground job to complete.
Definition: monojob.c:81
void intf_plug_plug(struct interface *a, struct interface *b)
Plug two object interfaces together.
Definition: interface.c:107
struct interface monojob
Definition: monojob.c:56
static struct interface sync_intf
Synchroniser.
Definition: sync.c:65
void timeout(int)
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References intf_plug_plug(), monojob, monojob_wait(), NULL, sync_intf, and timeout().

Referenced by efi_autoexec_network(), falcon_xaui_link_ok(), and sync_exec().