Preprocessor macro expanding to an expression
| Space | User/kernel |
| Context | Sync/async/rt-irq |
| May block | No |
| SPL | Any |
| Dynamic memory | No |
#include <SPAD/AC.H>
p = GET_STRUCT(ptr, type, member); This macro converts a pointer to the member of a structure to a pointer to the structure.
This macro is often used in ASTs — in AST handler we receive a pointer to the AST being posted and we need a pointer to the structure containing the AST. GET_STRUCT is usually one of the first commands in the AST handler.
Pointer to the whole structure.