iPXE
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)
 FILE_SECBOOT (PERMITTED)
int sync (unsigned long timeout)
 Wait for pending operations to complete.

Detailed Description

Wait for pending operations to complete.

Definition in file sync.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

References timeout().

◆ sync()

int sync ( unsigned long timeout)
extern

Wait for pending operations to complete.

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

Definition at line 74 of file sync.c.

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

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

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