iPXE
Defines | Functions
nap.h File Reference

CPU sleeping. More...

#include <ipxe/api.h>
#include <config/nap.h>
#include <ipxe/null_nap.h>
#include <ipxe/linux/linux_nap.h>
#include <bits/nap.h>

Go to the source code of this file.

Defines

#define NAP_INLINE(_subsys, _api_func)   SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func )
 Calculate static inline CPU sleeping API function name.
#define PROVIDE_NAP(_subsys, _api_func, _func)   PROVIDE_SINGLE_API ( NAP_PREFIX_ ## _subsys, _api_func, _func )
 Provide an CPU sleeping API implementation.
#define PROVIDE_NAP_INLINE(_subsys, _api_func)   PROVIDE_SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func )
 Provide a static inline CPU sleeping API implementation.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
void cpu_nap (void)
 Sleep until next CPU interrupt.

Detailed Description

CPU sleeping.

Definition in file nap.h.


Define Documentation

#define NAP_INLINE (   _subsys,
  _api_func 
)    SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func )

Calculate static inline CPU sleeping API function name.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function
Return values:
_subsys_funcSubsystem API function

Definition at line 22 of file nap.h.

#define PROVIDE_NAP (   _subsys,
  _api_func,
  _func 
)    PROVIDE_SINGLE_API ( NAP_PREFIX_ ## _subsys, _api_func, _func )

Provide an CPU sleeping API implementation.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function
_funcImplementing function

Definition at line 32 of file nap.h.

#define PROVIDE_NAP_INLINE (   _subsys,
  _api_func 
)    PROVIDE_SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func )

Provide a static inline CPU sleeping API implementation.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function

Definition at line 41 of file nap.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
void cpu_nap ( void  )