Created backend versions of all API functions returing a pointer; using

the PTR_ERR()... macros.
This commit is contained in:
Florian Pose
2008-11-17 15:04:28 +00:00
parent cf9c2fff91
commit bdbaf5d078
12 changed files with 108 additions and 40 deletions
+1 -5
View File
@@ -347,11 +347,7 @@ unsigned int ecrt_version_magic(void);
* The first master has index 0, the n-th master has index n - 1. The number
* of masters has to be specified when loading the master module.
*
* \attention In kernel context, the returned pointer has to be checked for
* errors using the IS_ERR() macro.
*
* \return If \a IS_ERR() returns zero, the result is a pointer to the
* reserved master, otherwise, the result is an error code.
* \return Pointer to the reserved master, otherwise \a NULL.
*/
ec_master_t *ecrt_request_master(
unsigned int master_index /**< Index of the master to request. */