iPXE
Data Structures | Defines | Functions
quiesce.h File Reference

Quiesce system. More...

#include <ipxe/tables.h>

Go to the source code of this file.

Data Structures

struct  quiescer
 A quiescer. More...

Defines

#define QUIESCERS   __table ( struct quiescer, "quiescers" )
 Quiescer table.
#define __quiescer   __table_entry ( QUIESCERS, 01 )
 Declare a quiescer.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
void quiesce (void)
 Quiesce system.
void unquiesce (void)
 Unquiesce system.

Detailed Description

Quiesce system.

Definition in file quiesce.h.


Define Documentation

#define QUIESCERS   __table ( struct quiescer, "quiescers" )

Quiescer table.

Definition at line 23 of file quiesce.h.

Referenced by quiesce(), and unquiesce().

#define __quiescer   __table_entry ( QUIESCERS, 01 )

Declare a quiescer.

Definition at line 26 of file quiesce.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
void quiesce ( void  )

Quiesce system.

Definition at line 36 of file quiesce.c.

References for_each_table_entry, quiescer::quiesce, and QUIESCERS.

Referenced by sandev_write().

                      {
        struct quiescer *quiescer;

        /* Call all quiescers */
        for_each_table_entry ( quiescer, QUIESCERS ) {
                quiescer->quiesce();
        }
}
void unquiesce ( void  )

Unquiesce system.

Definition at line 46 of file quiesce.c.

References for_each_table_entry, QUIESCERS, and quiescer::unquiesce.

Referenced by sandev_command(), and sandev_reopen().

                        {
        struct quiescer *quiescer;

        /* Call all quiescers */
        for_each_table_entry ( quiescer, QUIESCERS ) {
                quiescer->unquiesce();
        }
}