📄 hal_init.3hal
字号:
.TH hal_init "3hal" "2006-10-12" "EMC Documentation" "HAL".SH NAMEhal_init \- Sets up HAL and RTAPI.SH SYNTAX.HP int hal_init(char *\fImodname\fR).SH ARGUMENTS.IP \fImodname\fRThe name of this hal module.SH DESCRIPTION\fBhal_init\fR sets up HAL and RTAPI. It must be called by anymodule that intends to use the API, before any other RTAPIcalls.\fImodname\fR can optionally point to a string that identifiesthe module. The string will be truncated at \fBRTAPI_NAME_LEN\fRcharacters. If \fImodname\fR is \fBNULL\fR, the system will assign aname..SH REALTIME CONSIDERATIONSCall only from within user or init/cleanup code, not from relatime tasks..SH RETURN VALUEOn success, returns a positive integer module ID, which isused for subsequent calls to hal and rtapi APIs.On failure, returns a HAL error code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -