Description
Get per-stack options for all subsequently created stacks. These override any global per-stack environment options already set. When using this function, check the scope field on the environment variable, for example:
- EF_CTPIO
-
Name: ctpio
Default:
1Minimum:
0Maximum:
2Scope: Per-stack
Definition
int onload_stack_opt_get_int(const char* name, int64_t* value)
Formal Parameters
-
name - Stack option to get.
-
value - Location to receive the stack option.
Example
onload_stack_opt_get_int("EF_CTPIO", &value);
Return Value
0 on success.
errno set to EINVAL if the requested option is not found or ENOMEM.
Notes
- Cannot be used to get per-process options - only per-stack options.