| 434 | } |
| 435 | |
| 436 | static 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 | |
| 459 | static void rpmsg_socket_ns_bound(struct rpmsg_endpoint *ept) |
| 460 | { |
no test coverage detected