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

Function rpmsg_socket_ns_bound

net/rpmsg/rpmsg_sockif.c:459–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459static void rpmsg_socket_ns_bound(struct rpmsg_endpoint *ept)
460{
461 FAR struct rpmsg_socket_conn_s *conn = ept->priv;
462 struct rpmsg_socket_sync_s msg;
463
464 msg.cmd = RPMSG_SOCKET_CMD_SYNC;
465 msg.size = circbuf_size(&conn->recvbuf);
466 msg.pid = nxsched_getpid();
467 msg.uid = getuid();
468 msg.gid = getgid();
469
470 rpmsg_send(&conn->ept, &msg, sizeof(msg));
471}
472
473static void rpmsg_socket_ns_unbind(FAR struct rpmsg_endpoint *ept)
474{

Callers 1

rpmsg_socket_ns_bindFunction · 0.85

Calls 4

circbuf_sizeFunction · 0.85
nxsched_getpidFunction · 0.85
getuidFunction · 0.50
getgidFunction · 0.50

Tested by

no test coverage detected