Module: xenomai-forge
Branch: next
Commit: 1f82cd5d1b544b767935b68645a27032cc37fb96
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=1f82cd5d1b544b767935b68645a27032cc37fb96

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Aug 23 16:12:15 2014 +0200

cobalt/kernel/process: fix internal documentation

---

 kernel/cobalt/posix/process.c |   10 ++++++++--
 kernel/cobalt/posix/syscall.c |    2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index eaee69d..06a33bd 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -378,11 +378,16 @@ int cobalt_bind_core(void)
  *   . ERR_PTR(negative value) indicating an error, the binding
  *   process will then abort.
  *
- * - personality->ops.detach() is called on behalf of an exiting
- *   user-space process which has previously attached to the
+ * - personality->ops.detach_process() is called on behalf of an
+ *   exiting user-space process which has previously attached to the
  *   personality. This handler is passed a pointer to the per-process
  *   data received earlier from the ops->attach_process() handler.
  *
+ * @return the personality (extension) identifier.
+ *
+ * @note cobalt_get_context() is NULL when ops.detach_process() is
+ * invoked for the personality the caller detaches from.
+ *
  * @coretags{secondary-only}
  */
 int cobalt_register_personality(struct xnthread_personality *personality)
@@ -1074,6 +1079,7 @@ static int handle_taskexit_event(struct task_struct *p) 
/* p == current */
         * root thread.
         */
        secondary_mode_only();
+
        thread = xnthread_current();
        XENO_BUGON(NUCLEUS, thread == NULL);
        trace_cobalt_shadow_unmap(thread);
diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index 3b862ef..4e8e0de 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -258,7 +258,7 @@ linux_syscall:
                 * The call originates from the Linux domain, either
                 * from a relaxed shadow or from a regular Linux task;
                 * just propagate the event so that we will fall back
-                * to linux_sysentry().
+                * to handle_root_syscall().
                 */
                return KEVENT_PROPAGATE;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to