XLIO
The NVIDIA® Accelerated IO
Initialization and Cleanup

Functions for initializing and cleaning up the XLIO Ultra API. More...

Classes

struct  xlio_init_attr
 XLIO initialization attributes. More...
 

Functions

int xlio_init_ex (const struct xlio_init_attr *attr)
 Initialize the XLIO Ultra API. More...
 
int xlio_init (void)
 Initialize XLIO. More...
 
int xlio_exit (void)
 Finalize XLIO. More...
 

Detailed Description

Functions for initializing and cleaning up the XLIO Ultra API.

Function Documentation

◆ xlio_exit()

int xlio_exit ( void  )

Finalize XLIO.

Finalizes and cleans XLIO resources.

Returns
0 on success, -1 on error (errno is set)

◆ xlio_init()

int xlio_init ( void  )

Initialize XLIO.

This function is similar to xlio_init_ex() but doesn't accept additional attributes.

Returns
0 on success, -1 on error (errno is set)
Error Codes:
  • EINVAL: Invalid parameters
  • ENOMEM: Insufficient memory
  • ENODEV: No compatible network devices found
  • EEXIST: XLIO is already initialized
See also
xlio_exit()

◆ xlio_init_ex()

int xlio_init_ex ( const struct xlio_init_attr attr)

Initialize the XLIO Ultra API.

This function must be called before using any other XLIO Ultra API functions. It's a heavy operation that sets up the internal state, allocates resources, and configures the system for high-performance networking.

Note
This function is not thread-safe. However, subsequent serialized calls will exit successfully without performing any action.
Parameters
attrInitialization attributes structure
Returns
0 on success, -1 on error (errno is set)
Error Codes:
  • EINVAL: Invalid parameters
  • ENOMEM: Insufficient memory
  • ENODEV: No compatible network devices found
See also
xlio_exit()
xlio_init_attr