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.

Detailed Description

Wait for pending operations to complete.

Definition in file sync.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
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.

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

Referenced by falcon_xaui_link_ok(), and sync_exec().

                                   {

        /* Attach synchroniser and wait for completion */
        intf_plug_plug ( &monojob, &sync_intf );
        return monojob_wait ( NULL, timeout );
}