Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
xenomai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xenomai
xenomai
Commits
406740bd
Commit
406740bd
authored
Apr 11, 2018
by
Philippe Gerum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/udd: fix documentation
parent
33dd9ce1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
include/cobalt/kernel/rtdm/udd.h
include/cobalt/kernel/rtdm/udd.h
+11
-7
lib/cobalt/init.c
lib/cobalt/init.c
+1
-0
No files found.
include/cobalt/kernel/rtdm/udd.h
View file @
406740bd
...
...
@@ -147,20 +147,24 @@
* @endcode
*
* This will make such region accessible via the mapper device using
* the following sequence of code
, via the default ->mmap() handler
* from the UDD core:
* the following sequence of code
(see note), via the default
*
->mmap() handler
from the UDD core:
*
* @code
* int fd, fdm;
* void *p;
*
* fd = open("/dev/foocard", O_RDWR);
* fdm = open("/dev/
foocard,mapper@
2", O_RDWR);
* p = mmap(NULL, 4096, PROT_READ|PROT_WRITE,
0
, fdm, 0);
* fd = open("/dev/
rtdm/
foocard", O_RDWR);
* fdm = open("/dev/
rtdm/foocard,mapper
2", O_RDWR);
* p = mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_SHARED
, fdm, 0);
* @endcode
*
* @note No mapper device is created unless a valid region has been
* declared in the udd_device.mem_regions[] array.
* if no valid region has been declared in the
* udd_device.mem_regions[] array, no mapper device is created.
*
* @note The example code assumes that @ref cobalt_api POSIX symbol
* wrapping is in effect, so that RTDM performs the memory mapping
* operation (not the regular kernel).
*/
struct
udd_memregion
{
/** Name of the region (informational but required) */
...
...
lib/cobalt/init.c
View file @
406740bd
...
...
@@ -40,6 +40,7 @@
/**
* @ingroup cobalt
* @defgroup cobalt_api POSIX interface
* @anchor cobalt_api
*
* The Cobalt/POSIX interface is an implementation of a subset of the
* <a href="http://www.opengroup.org/onlinepubs/000095399/functions/">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment