These are APIs for which only a single implementation may be compiled in at any given time.
More...
These are APIs for which only a single implementation may be compiled in at any given time.
◆ SINGLE_API_NAME
#define SINGLE_API_NAME |
( |
|
_prefix, |
|
|
|
_api_func |
|
) |
| _prefix ## _api_func |
Calculate function implementation name.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
- Return values
-
_subsys_func | Subsystem API function |
The subsystem prefix should be an empty string for the currently selected subsystem, and should be a subsystem-unique string for all other subsystems.
Definition at line 35 of file api.h.
◆ SINGLE_API_INLINE
#define SINGLE_API_INLINE |
( |
|
_prefix, |
|
|
|
_api_func |
|
) |
| SINGLE_API_NAME ( _prefix, _api_func ) |
Calculate static inline function name.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
- Return values
-
_subsys_func | Subsystem API function |
Definition at line 44 of file api.h.
◆ PROVIDE_SINGLE_API
#define PROVIDE_SINGLE_API |
( |
|
_prefix, |
|
|
|
_api_func, |
|
|
|
_func |
|
) |
| |
Value: \
typeof ( _api_func ) _api_func; \
\
typeof ( _func ) _func; \
\
typeof ( _api_func ) _func; \
\
\
__attribute__ (( alias ( #_func ) ));
#define SINGLE_API_NAME(_prefix, _api_func)
Calculate function implementation name.
typeof(acpi_finder=acpi_find)
ACPI table finder.
Provide an API implementation.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
_func | Implementing function |
Definition at line 54 of file api.h.
◆ PROVIDE_SINGLE_API_INLINE
#define PROVIDE_SINGLE_API_INLINE |
( |
|
_prefix, |
|
|
|
_api_func |
|
) |
| |
Value: \
typeof ( _api_func ) _api_func; \
\
SINGLE_API_INLINE ( _prefix, _api_func ); \
\
#define SINGLE_API_INLINE(_prefix, _api_func)
Calculate static inline function name.
typeof(acpi_finder=acpi_find)
ACPI table finder.
Provide a static inline API implementation.
- Parameters
-
_prefix | Subsystem prefix |
_api_func | API function |
Definition at line 73 of file api.h.