onload_stack_opt_get_int - UG1586

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2025-11-03
Revision
1.31 English

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: 1

Minimum: 0

Maximum: 2

Scope: 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.