forked from LinuxCNC/linuxcnc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to create an adoc man page for eachman page
Showing
28 changed files
with
408 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= EXPORT_FUNCTION(3rtapi) | ||
|
||
== NAME | ||
|
||
EXPORT_FUNCTION - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= MODULE_AUTOR(3rtapi) | ||
|
||
== NAME | ||
|
||
MODULE_AUTHOR - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= MODULE_DESCRIPTION(3rtapi) | ||
|
||
== NAME | ||
|
||
MODULE_DESCRIPTION - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= MODULE_LICENSE(3rtapi) | ||
|
||
== NAME | ||
|
||
MODULE_LICENSE - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_ARRAY_INT(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_ARRAY_INT - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_ARRAY_LONG(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_ARRAY_LONG - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_ARRAY_STRING(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_ARRAY_STRING - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_INT(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_INT - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_LONG(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_LONG - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= RTAPI_MP_STRING(3rtapi) | ||
|
||
== NAME | ||
|
||
RTAPI_MP_STRING - Specifying module parameters | ||
|
||
include::rtapi_module_param.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_bit_t(3hal) | ||
|
||
== NAME | ||
|
||
hal_bit_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_bool(3hal) | ||
|
||
== NAME | ||
|
||
hal_bool - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_del_funct_from_thread(3hal) | ||
|
||
== NAME | ||
|
||
hal_del_funct_from_thread - cause a function to be executed at regular intervals | ||
|
||
== SYNTAX | ||
|
||
int hal_add_funct_to_thread(const char *_funct_name_, const char | ||
*_thread_name_, int position) | ||
|
||
int hal_del_funct_from_thread(const char *_funct_name_, const char | ||
*_thread_name_) | ||
|
||
== ARGUMENTS | ||
|
||
funct_name:: | ||
The name of the function. | ||
thread_name:: | ||
The name of the thread. | ||
position:: | ||
The desired location within the thread. This determines when the | ||
function will run, in relation to other functions in the thread. A | ||
positive number indicates the desired location as measured from the | ||
beginning of the thread, and a negative is measured from the end. So | ||
+1 means this function will become the first one to run, +5 means it | ||
will be the fifth one to run, -2 means it will be next to last, and -1 | ||
means it will be last. Zero is illegal. | ||
|
||
== DESCRIPTION | ||
|
||
*hal_add_funct_to_thread* adds a function exported by a realtime HAL | ||
component to a realtime thread. This determines how often and in what | ||
order functions are executed. | ||
|
||
*hal_del_funct_from_thread* removes a function from a thread. | ||
|
||
== RETURN VALUE | ||
|
||
Returns a HAL status code. | ||
|
||
== REALTIME CONSIDERATIONS | ||
|
||
Call only from realtime init code, not from other realtime or | ||
non-realtime code. | ||
|
||
== SEE ALSO | ||
|
||
hal_thread_new(3hal), hal_export_funct(3hal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_export_functf(3hal) | ||
|
||
== NAME | ||
|
||
hal_export_functf - create a realtime function callable from a thread | ||
|
||
== SYNTAX | ||
|
||
int hal_export_funct(const char *name, void (*funct) (void *, long), | ||
void *arg, int uses_fp, int reentrant, int comp_id); | ||
|
||
== DESCRIPTION | ||
|
||
*hal_export_functf* is similar to hal_export_funct except that it also does | ||
printf-style formatting to compute the function name. | ||
If successful, it returns 0. | ||
On failure it returns a negative error code. | ||
|
||
== RETURN VALUE | ||
|
||
Returns a HAL status code. | ||
|
||
== SEE ALSO | ||
|
||
hal_export_funct(3hal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_get_lock(3hal) | ||
|
||
== NAME | ||
|
||
hal_get_lock - Get the HAL lock level | ||
|
||
== SYNTAX | ||
|
||
int hal_get_lock() | ||
|
||
== ARGUMENTS | ||
|
||
lock_type:: | ||
The desired lock type, which may be a bitwise combination of: | ||
*HAL_LOCK_LOAD*, *HAL_LOCK_CONFIG*, *HAL_LOCK_PARAMS*, or | ||
*HAL_LOCK_PARAMS*. *HAL_LOCK_NONE* or 0 locks nothing, and | ||
*HAL_LOCK_ALL locks everything.* | ||
|
||
== RETURN VALUE | ||
|
||
*hal_get_lock* returns the current HAL lock level or a HAL status code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_port_t(3hal) | ||
|
||
== NAME | ||
|
||
hal_port_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_s32_t(3hal) | ||
|
||
== NAME | ||
|
||
hal_s32_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
== DESCRIPTION | ||
|
||
typedef ... *hal_bool;*:: | ||
A type which may have a value of 0 or nonzero. | ||
typedef ... *hal_bit_t;*:: | ||
A volatile type which may have a value of 0 or nonzero. | ||
typedef ... *hal_s32_t*;:: | ||
A volatile type which may have a value from -2147483648 to 2147483647. | ||
typedef ... *hal_u32_t*;:: | ||
A volatile type which may have a value from 0 to 4294967295. | ||
typedef ... *hal_port_t*;:: | ||
A volatile handle to a port object. Used with hal_port* functions. | ||
typedef ... *hal_float_t*;:: | ||
A volatile floating-point type, which typically has the same precision | ||
and range as the C type *double*. | ||
typedef ... *real_t*;:: | ||
A nonvolatile floating-point type with at least as much precision as | ||
*hal_float_t*. | ||
typedef ... *ireal_t*;:: | ||
A nonvolatile unsigned integral type the same size as *hal_float_t*. | ||
typedef enum *hal_type_t*;:: | ||
+ | ||
*HAL_BIT*;; | ||
Corresponds to the type *hal_bit_t*. | ||
*HAL_FLOAT*;; | ||
Corresponds to the type *hal_float_t*. | ||
*HAL_S32*;; | ||
Corresponds to the type *hal_s32_t*. | ||
*HAL_U32*;; | ||
Corresponds to the type *hal_u32_t*. | ||
|
||
== NOTES | ||
|
||
*hal_bit_t* is typically a typedef to an integer type whose range is | ||
larger than just 0 and 1. When testing the value of a *hal_bit_t*, never | ||
compare it to 1. Prefer one of the following: | ||
|
||
____ | ||
* if(b) | ||
* if(b != 0) | ||
____ | ||
|
||
It is often useful to refer to a type that can represent all the values | ||
as a HAL type, but without the volatile qualifier. The following types | ||
correspond with the HAL types: | ||
|
||
____ | ||
hal_bit_t:: | ||
int | ||
hal_s32_t:: | ||
__s32 | ||
hal_u32_t:: | ||
__u32 | ||
hal_float_t:: | ||
hal_real_t | ||
hal_port_t:: | ||
int | ||
____ | ||
|
||
Take care not to use the types *s32* and *u32*. These will compile in | ||
kernel modules but not in userspace, and not for realtime components | ||
when using uspace realtime. | ||
|
||
== SEE ALSO | ||
|
||
hal_pin_new(3hal), hal_param_new(3hal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= hal_u32_t(3hal) | ||
|
||
== NAME | ||
|
||
hal_u32_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= ireal_t(3hal) | ||
|
||
== NAME | ||
|
||
ireal_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:manvolnum: 3 | ||
|
||
= real_t(3hal) | ||
|
||
== NAME | ||
|
||
real_t - typedefs for HAL datatypes | ||
|
||
include::hal_type_t.3.body[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Tis is the content of rtapi_module_param(3rtapi) without header to avoid | ||
// problems with name mismatches as it is included in other man pages. | ||
|
||
|
||
== SYNTAX | ||
|
||
.... | ||
RTAPI_MP_INT(_var_, _description_); | ||
RTAPI_MP_LONG(_var_, _description_); | ||
RTAPI_MP_STRING(_var_, _description_); | ||
RTAPI_MP_ARRAY_INT(_var_, _num_, _description_); | ||
RTAPI_MP_ARRAY_LONG(_var_, _num_, _description_); | ||
RTAPI_MP_ARRAY_STRING(_var_, _num_, _description_); | ||
MODULE_LICENSE(_license_); | ||
MODULE_AUTHOR(_author_); | ||
MODULE_DESCRIPTION(_description_); | ||
EXPORT_FUNCTION(_function_); | ||
.... | ||
|
||
== ARGUMENTS | ||
|
||
var:: | ||
The variable where the parameter should be stored | ||
description:: | ||
A short description of the parameter or module | ||
num:: | ||
The maximum number of values for an array parameter | ||
license:: | ||
The license of the module, for instance "GPL" | ||
author:: | ||
The author of the module | ||
function:: | ||
The pointer to the function to be exported | ||
|
||
== DESCRIPTION | ||
|
||
These macros are portable ways to declare kernel module parameters. They | ||
must be used in the global scope, and are not followed by a terminating | ||
semicolon. They must be used after the associated variable or function | ||
has been defined. | ||
|
||
== NOTES | ||
|
||
EXPORT_FUNCTION makes a symbol available for use by a subsequently | ||
loaded component. It is unrelated to HAL functions, which are described | ||
in hal_export_funct(3hal) | ||
|
||
== Interpretation of license strings | ||
|
||
*MODULE_LICENSE* follows the kernel's definition of license strings. | ||
Notably, "GPL" indicates "GNU General Public License v2 _or later_". | ||
(emphasis ours). | ||
|
||
"GPL":: | ||
GNU General Public License v2 or later | ||
"GPL v2":: | ||
GNU General Public License v2 | ||
"GPL and additional rights":: | ||
GNU General Public License v2 rights and more | ||
"Dual BSD/GPL":: | ||
GNU General Public License v2 or BSD license choice | ||
"Dual MIT/GPL":: | ||
GNU General Public License v2 or MIT license choice | ||
"Dual MPL/GPL":: | ||
GNU General Public License v2 or Mozilla license choice | ||
"Proprietary":: | ||
Non-free products | ||
|
||
It is still good practice to include a license block which indicates the | ||
author, copyright date, and disclaimer of warranty as recommended by the | ||
GNU GPL. | ||
|
||
== REALTIME CONSIDERATIONS | ||
|
||
Not available in userspace code. |