Commit 406740bd authored by Philippe Gerum's avatar Philippe Gerum

drivers/udd: fix documentation

parent 33dd9ce1
...@@ -147,20 +147,24 @@ ...@@ -147,20 +147,24 @@
* @endcode * @endcode
* *
* This will make such region accessible via the mapper device using * This will make such region accessible via the mapper device using
* the following sequence of code, via the default ->mmap() handler * the following sequence of code (see note), via the default
* from the UDD core: * ->mmap() handler from the UDD core:
* *
* @code * @code
* int fd, fdm; * int fd, fdm;
* void *p; * void *p;
* *
* fd = open("/dev/foocard", O_RDWR); * fd = open("/dev/rtdm/foocard", O_RDWR);
* fdm = open("/dev/foocard,mapper@2", O_RDWR); * fdm = open("/dev/rtdm/foocard,mapper2", O_RDWR);
* p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, 0, fdm, 0); * p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fdm, 0);
* @endcode * @endcode
* *
* @note No mapper device is created unless a valid region has been * if no valid region has been declared in the
* declared in the udd_device.mem_regions[] array. * 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 { struct udd_memregion {
/** Name of the region (informational but required) */ /** Name of the region (informational but required) */
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
/** /**
* @ingroup cobalt * @ingroup cobalt
* @defgroup cobalt_api POSIX interface * @defgroup cobalt_api POSIX interface
* @anchor cobalt_api
* *
* The Cobalt/POSIX interface is an implementation of a subset of the * The Cobalt/POSIX interface is an implementation of a subset of the
* <a href="http://www.opengroup.org/onlinepubs/000095399/functions/"> * <a href="http://www.opengroup.org/onlinepubs/000095399/functions/">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment