Macro ngx_container_of

Source
macro_rules! ngx_container_of {
    ($ptr:expr, $type:path, $field:ident) => { ... };
}
Expand description

Gets an outer object pointer from a pointer to one of its fields. While there is no corresponding C macro, the pattern is common in the NGINX source.

ยงSafety

$ptr must be a valid pointer to the field $field of $type.