iPXE
|
Wait for pending operations to complete. More...
#include <stddef.h>
#include <ipxe/job.h>
#include <ipxe/monojob.h>
#include <ipxe/pending.h>
#include <usr/sync.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | sync_progress (struct interface *intf, struct job_progress *progress __unused) |
Report progress. More... | |
int | sync (unsigned long timeout) |
Wait for pending operations to complete. More... | |
Variables | |
static struct interface_operation | sync_intf_op [] |
Synchroniser interface operations. More... | |
static struct interface_descriptor | sync_intf_desc |
Synchroniser interface descriptor. More... | |
static struct interface | sync_intf = INTF_INIT ( sync_intf_desc ) |
Synchroniser. More... | |
Wait for pending operations to complete.
Definition in file sync.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Report progress.
intf | Interface |
progress | Progress report to fill in |
ongoing_rc | Ongoing job status code (if known) |
Definition at line 45 of file sync.c.
References have_pending(), and intf_close().
int sync | ( | unsigned long | timeout | ) |
Wait for pending operations to complete.
timeout | Timeout period, in ticks (0=indefinite) |
rc | Return status code |
Definition at line 73 of file sync.c.
References intf_plug_plug(), monojob, monojob_wait(), NULL, sync_intf, and timeout().
Referenced by falcon_xaui_link_ok(), and sync_exec().
|
static |
Synchroniser interface operations.
|
static |
Synchroniser interface descriptor.