/ docs / man / man3 / rtapi_string.3rtapi
rtapi_string.3rtapi
 1  .\" Copyright (c) 2014 Jeff Epler
 2  .\"
 3  .\" This is free documentation; you can redistribute it and/or
 4  .\" modify it under the terms of the GNU General Public License as
 5  .\" published by the Free Software Foundation; either version 2 of
 6  .\" the License, or (at your option) any later version.
 7  .\"
 8  .\" The GNU General Public License's references to "object code"
 9  .\" and "executables" are to be interpreted as the output of any
10  .\" document formatting or typesetting system, including
11  .\" intermediate and printed output.
12  .\"
13  .\" This manual is distributed in the hope that it will be useful,
14  .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15  .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  .\" GNU General Public License for more details.
17  .\"
18  .\" You should have received a copy of the GNU General Public
19  .\" License along with this manual; if not, write to the Free
20  .\" Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  .\" USA.
22  .TH funct "3rtapi" "2014-06-28" "LinuxCNC Documentation" "RTAPI"
23  .SH NAME
24  
25  rtapi_string.h \- RTAPI wrappers for linux kernel functionality
26  
27  .SH SYNTAX
28  .HP
29  #include <rtapi_string.h>
30  .HP
31  char **rtapi_argv_split(rtapi_gfp_t g, const char *argstr, int *argc);
32  .HP
33  void rtapi_argv_free(char **argv);
34  .HP
35  char *rtapi_kstrdup(const char *s, rtapi_gfp_t t);
36  .SH DESCRIPTION
37  In kernel space, each rtapi_xxx or RTAPI_XXX identifier is mapped to the
38  underlying kernel functionality, if available.
39  
40  In userspace, or in kernels where the underlying functionality is not provided
41  by a kernel, generally another implementation--possibly with reduced
42  functionality--is provided.  (For example, the userspace implementation for
43  rtapi_device_register always succeeds)
44  .SH REALTIME CONSIDERATIONS
45  Call only from within init/cleanup code, not from realtime tasks.  This
46  function is not available from user (non-realtime) code.
47  .SH RETURN VALUE
48  As in Linux.
49  .SH SEE ALSO