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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jun 11 10:36:07 2013 +0200

rtdm: use obvious naming for process cleanup

---

 include/rtdm/rtdm_driver.h    |    4 +++-
 kernel/cobalt/rtdm/core.c     |    2 +-
 kernel/cobalt/rtdm/internal.h |    2 +-
 kernel/cobalt/rtdm/syscall.c  |    2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/rtdm/rtdm_driver.h b/include/rtdm/rtdm_driver.h
index d1fbc2d..0658136 100644
--- a/include/rtdm/rtdm_driver.h
+++ b/include/rtdm/rtdm_driver.h
@@ -382,8 +382,10 @@ struct rtdm_operations {
        /** @} Message-Oriented Device Operations */
 };
 
+struct rtdm_process;
+
 struct rtdm_devctx_reserved {
-       void *owner;
+       struct rtdm_process *owner;
        struct list_head cleanup;
 };
 
diff --git a/kernel/cobalt/rtdm/core.c b/kernel/cobalt/rtdm/core.c
index 71ff5ec..f426019 100644
--- a/kernel/cobalt/rtdm/core.c
+++ b/kernel/cobalt/rtdm/core.c
@@ -444,7 +444,7 @@ err_out:
 
 EXPORT_SYMBOL_GPL(__rt_dev_close);
 
-void cleanup_owned_contexts(void *owner)
+void cleanup_process_files(struct rtdm_process *owner)
 {
        struct rtdm_dev_context *context;
        unsigned int fd;
diff --git a/kernel/cobalt/rtdm/internal.h b/kernel/cobalt/rtdm/internal.h
index 49cad29..c5f1007 100644
--- a/kernel/cobalt/rtdm/internal.h
+++ b/kernel/cobalt/rtdm/internal.h
@@ -64,7 +64,7 @@ extern struct xnpersonality rtdm_personality;
 
 extern int rtdm_initialised;
 
-void cleanup_owned_contexts(void *user_info);
+void cleanup_process_files(struct rtdm_process *owner);
 int rtdm_no_support(void);
 struct rtdm_device *get_named_device(const char *name);
 struct rtdm_device *get_protocol_device(int protocol_family, int socket_type);
diff --git a/kernel/cobalt/rtdm/syscall.c b/kernel/cobalt/rtdm/syscall.c
index c4461fa..5351b36 100644
--- a/kernel/cobalt/rtdm/syscall.c
+++ b/kernel/cobalt/rtdm/syscall.c
@@ -125,7 +125,7 @@ static void rtdm_process_detach(struct xnshadow_ppd *ppd)
        struct rtdm_process *process;
 
        process = container_of(ppd, struct rtdm_process, ppd);
-       cleanup_owned_contexts(process);
+       cleanup_process_files(process);
        kfree(process);
 }
 


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

Reply via email to