<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><div dir="auto">Is this the same as the NFS client for the legacy stack?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 18, 2020, 2:27 AM Sebastian Huber <<a href="mailto:sebh@rtems.org" target="_blank">sebh@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Module:    rtems-libbsd<br>
Branch:    5-freebsd-12<br>
Commit:    039afd9816122fc52f77966dc78430e009aa220c<br>
Changeset: <a href="http://git.rtems.org/rtems-libbsd/commit/?id=039afd9816122fc52f77966dc78430e009aa220c" rel="noreferrer noreferrer" target="_blank">http://git.rtems.org/rtems-libbsd/commit/?id=039afd9816122fc52f77966dc78430e009aa220c</a><br>
<br>
Author:    Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" rel="noreferrer" target="_blank">sebastian.huber@embedded-brains.de</a>><br>
Date:      Wed Mar 11 11:05:59 2020 +0100<br>
<br>
nfsclient: Use a system event for RPC<br>
<br>
Aviod conflicts with application events.<br>
<br>
---<br>
<br>
 rtemsbsd/nfsclient/rpcio.c | 12 ++++++------<br>
 1 file changed, 6 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/rtemsbsd/nfsclient/rpcio.c b/rtemsbsd/nfsclient/rpcio.c<br>
index cd04de3..40f8f08 100644<br>
--- a/rtemsbsd/nfsclient/rpcio.c<br>
+++ b/rtemsbsd/nfsclient/rpcio.c<br>
@@ -145,7 +145,7 @@ static struct timeval _rpc_default_timeout = { 10 /* secs */, 0 /* usecs */ };<br>
  * MUST NOT be used by any application<br>
  * thread doing RPC IO (e.g. NFS)<br>
  */<br>
-#define RTEMS_RPC_EVENT                RTEMS_EVENT_30  /* THE event used by RPCIO. Every task doing<br>
+#define RTEMS_RPC_EVENT                RTEMS_EVENT_SYSTEM_SERVER       /* THE event used by RPCIO. Every task doing<br>
                                                                                         * RPC IO will receive this - hence it is<br>
                                                                                         * RESERVED<br>
                                                                                         */<br>
@@ -867,7 +867,7 @@ rtems_event_set             gotEvents;<br>
        do {<br>
<br>
        /* block for the reply */<br>
-       status = rtems_event_receive(<br>
+       status = rtems_event_system_receive(<br>
                RTEMS_RPC_EVENT,<br>
                RTEMS_WAIT | RTEMS_EVENT_ANY,<br>
                RTEMS_NO_TIMEOUT,<br>
@@ -1316,7 +1316,7 @@ rtems_status_code status;<br>
                                }<br>
<br>
                                /* wakeup requestor */<br>
-                               rtems_event_send(xact->requestor, RTEMS_RPC_EVENT);<br>
+                               rtems_event_system_send(xact->requestor, RTEMS_RPC_EVENT);<br>
                        }<br>
                }<br>
<br>
@@ -1371,7 +1371,7 @@ rtems_status_code status;<br>
 #if (DEBUG) & DEBUG_TIMEOUT<br>
                                        fprintf(stderr,"RPCIO XACT timed out; waking up requestor\n");<br>
 #endif<br>
-                                       if ( rtems_event_send(xact->requestor, RTEMS_RPC_EVENT) ) {<br>
+                                       if ( rtems_event_system_send(xact->requestor, RTEMS_RPC_EVENT) ) {<br>
                                                rtems_panic("RPCIO PANIC: requestor id was 0x%08x",<br>
                                                                        xact->requestor);<br>
                                        }<br>
@@ -1403,7 +1403,7 @@ rtems_status_code status;<br>
<br>
                                                /* wakeup requestor */<br>
                                                fprintf(stderr,"RPCIO: SEND failure\n");<br>
-                                               status = rtems_event_send(xact->requestor, RTEMS_RPC_EVENT);<br>
+                                               status = rtems_event_system_send(xact->requestor, RTEMS_RPC_EVENT);<br>
                                                assert( status == RTEMS_SUCCESSFUL );<br>
<br>
                                        } else {<br>
@@ -1541,7 +1541,7 @@ rtems_status_code status;<br>
<br>
        for (xact=((RpcUdpXact)listHead.next); xact; xact=((RpcUdpXact)xact->node.next)) {<br>
                        xact->status.re_status = RPC_TIMEDOUT;<br>
-                       rtems_event_send(xact->requestor, RTEMS_RPC_EVENT);<br>
+                       rtems_event_system_send(xact->requestor, RTEMS_RPC_EVENT);<br>
        }<br>
 #endif<br>
<br>
<br>
_______________________________________________<br>
vc mailing list<br>
<a href="mailto:vc@rtems.org" rel="noreferrer" target="_blank">vc@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/vc" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/vc</a><br>
</blockquote></div>
</div></div>