iPXE
Macros | Typedefs | Functions
stddef.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define NULL   ( ( void * ) 0 )
 EFI headers also define NULL. More...
 
#define offsetof(type, field)   ( ( size_t ) &( ( ( type * ) NULL )->field ) )
 Get offset of a field within a structure. More...
 
#define container_of(ptr, type, field)
 Get containing structure. More...
 
#define __WCHAR_TYPE__   uint16_t
 
#define __WINT_TYPE__   int
 

Typedefs

typedef __WCHAR_TYPE__ wchar_t
 
typedef __WINT_TYPE__ wint_t
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 

Macro Definition Documentation

◆ NULL

#define NULL   ( ( void * ) 0 )

EFI headers also define NULL.

Null pointer

Definition at line 12 of file stddef.h.

◆ offsetof

#define offsetof (   type,
  field 
)    ( ( size_t ) &( ( ( type * ) NULL )->field ) )

Get offset of a field within a structure.

Parameters
typeStructure type
fieldField within structure
Return values
offsetOffset within structure

Definition at line 24 of file stddef.h.

◆ container_of

#define container_of (   ptr,
  type,
  field 
)
Value:
( { \
type *__container; \
const volatile typeof ( __container->field ) *__field = (ptr); \
__container = ( ( ( void * ) __field ) - \
offsetof ( type, field ) ); \
__container; } )
uint32_t type
Operating system type.
Definition: ena.h:12
typeof(acpi_finder=acpi_find)
ACPI table finder.
Definition: acpi.c:45

Get containing structure.

Parameters
ptrPointer to contained field
typeContaining structure type
fieldField within containing structure
Return values
containerPointer to containing structure

Definition at line 35 of file stddef.h.

◆ __WCHAR_TYPE__

#define __WCHAR_TYPE__   uint16_t

Definition at line 44 of file stddef.h.

◆ __WINT_TYPE__

#define __WINT_TYPE__   int

Definition at line 47 of file stddef.h.

Typedef Documentation

◆ wchar_t

Definition at line 49 of file stddef.h.

◆ wint_t

Definition at line 50 of file stddef.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )