Module: xenomai-head
Branch: master
Commit: c317362b9102d7f3fbcf1ec75a2a66fa378fc9ef
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c317362b9102d7f3fbcf1ec75a2a66fa378fc9ef

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Sep  9 17:41:03 2009 +0200

rtipc: disable deprecated close_rt handler for protocols

---

 ksrc/drivers/ipc/iddp.c  |    3 ---
 ksrc/drivers/ipc/rtipc.c |    2 +-
 ksrc/drivers/ipc/xddp.c  |    3 ---
 3 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/ksrc/drivers/ipc/iddp.c b/ksrc/drivers/ipc/iddp.c
index e1f0d46..3bfd677 100644
--- a/ksrc/drivers/ipc/iddp.c
+++ b/ksrc/drivers/ipc/iddp.c
@@ -216,9 +216,6 @@ static int iddp_close(struct rtipc_private *priv,
        struct iddp_message *mbuf;
        LIST_HEAD(head);
 
-       if (rtdm_in_rt_context() && sk->bufpool != &kheap)
-               return -ENOSYS; /* Downgrade to NRT */
-
        if (sk->name.sipc_port > -1) {
                portmap[sk->name.sipc_port] = NULL;
                xnmap_remove(portbits, sk->name.sipc_port);
diff --git a/ksrc/drivers/ipc/rtipc.c b/ksrc/drivers/ipc/rtipc.c
index 0ab66f4..5e695ea 100644
--- a/ksrc/drivers/ipc/rtipc.c
+++ b/ksrc/drivers/ipc/rtipc.c
@@ -227,7 +227,7 @@ static struct rtdm_device device = {
        .socket_rt      =       rtipc_socket,
        .socket_nrt     =       rtipc_socket,
        .ops = {
-               .close_rt       =       rtipc_close,
+               .close_rt       =       NULL,
                .close_nrt      =       rtipc_close,
                .recvmsg_rt     =       rtipc_recvmsg,
                .recvmsg_nrt    =       NULL,
diff --git a/ksrc/drivers/ipc/xddp.c b/ksrc/drivers/ipc/xddp.c
index d2c7a68..b9a69ce 100644
--- a/ksrc/drivers/ipc/xddp.c
+++ b/ksrc/drivers/ipc/xddp.c
@@ -264,9 +264,6 @@ static int xddp_close(struct rtipc_private *priv,
        struct xddp_socket *sk = priv->state;
        int bound;
 
-       if (rtdm_in_rt_context())
-               return -ENOSYS; /* Downgrade to NRT */
-
        RTDM_EXECUTE_ATOMICALLY(
                bound = test_bit(_XDDP_BOUND, &sk->status);
                if (bound)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to