MCPcopy Create free account
hub / github.com/apache/nuttx / rpmsg_socket_destroy_ept

Function rpmsg_socket_destroy_ept

net/rpmsg/rpmsg_sockif.c:436–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436static inline void rpmsg_socket_destroy_ept(
437 FAR struct rpmsg_socket_conn_s *conn)
438{
439 if (!conn)
440 {
441 return;
442 }
443
444 nxmutex_lock(&conn->recvlock);
445 nxmutex_lock(&conn->sendlock);
446
447 if (conn->ept.rdev)
448 {
449 rpmsg_socket_post(&conn->sendsem);
450 rpmsg_socket_post(&conn->recvsem);
451 rpmsg_socket_poll_notify(conn, POLLIN | POLLOUT);
452 }
453
454 nxmutex_unlock(&conn->sendlock);
455 nxmutex_unlock(&conn->recvlock);
456 rpmsg_destroy_ept(&conn->ept);
457}
458
459static void rpmsg_socket_ns_bound(struct rpmsg_endpoint *ept)
460{

Callers 2

rpmsg_socket_closeFunction · 0.85

Calls 4

nxmutex_lockFunction · 0.85
rpmsg_socket_postFunction · 0.85
rpmsg_socket_poll_notifyFunction · 0.85
nxmutex_unlockFunction · 0.85

Tested by

no test coverage detected