hal_init - Sets up HAL and RTAPI
Contents
Arguments
modname
The name of this HAL module
Description
hal_init sets up HAL and RTAPI. It must be called by any module that intends to use the API, before any
other RTAPI calls.
modname must point to a string that identifies the module. The string may be no longer than HAL_NAME_LEN
characters.
Name
hal_init - Sets up HAL and RTAPI
Realtime Considerations
Call only from within non-realtime or init/cleanup code, not from realtime tasks.
Return Value
On success, returns a positive integer module ID, which is used for subsequent calls to HAL and rtapi
APIs. On failure, returns a HAL error code.
LinuxCNC Documentation 2006-10-12 hal_init(3hal)
Syntax
int hal_init(const char *modname)
