This module contains common definitions, types, structures and functions used by SysLink.
Go to the source code of this file.
Functions | |
Void | SysLink_setup (Void) |
Function to initialize SysLink. | |
Void | SysLink_destroy (Void) |
Function to finalize SysLink. | |
Variables | |
String | SysLink_params |
Config params override strings. |
Void SysLink_setup | ( | Void | ) |
Function to initialize SysLink.
This function must be called in every user process before making calls to any other SysLink APIs.
To accommodate the above potential race condition, each /dev file 'open' is performed in a loop with a 1 ms sleep in between each 'open' attempt. The loop will occur a maximum of 100 times before reporting the failure to open the /dev file. Since SysLink_setup() is of a 'void' return type, it can't report this error back to the application, and instead it prints failure messages to 'stderr'.
Void SysLink_destroy | ( | Void | ) |
Function to finalize SysLink.
This function must be called in every user process at the end after all usage of SysLink in that process is complete.
Config params override strings.
This string is a list of semi-colon-delimited "assignments" that can be set by users prior to the initial call to SysLink_setup() to affect system behavior.
Example assignments include:
SL_PARAMS
environment variable to set this string's value.SL_PARAMS
) prior to running slaveloader.