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

Function reset_rpmsg_client_created

drivers/reset/reset_rpmsg.c:187–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 ****************************************************************************/
186
187static void reset_rpmsg_client_created(FAR struct rpmsg_device *rdev,
188 FAR void *priv)
189{
190 FAR struct reset_rpmsg_client_s *client = priv;
191
192 if (client == NULL)
193 {
194 return;
195 }
196
197 if (strcmp(client->cpuname, rpmsg_get_cpuname(rdev)) == 0)
198 {
199 rpmsg_create_ept(&client->ept, rdev, RESET_RPMSG_EPT_NAME,
200 RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
201 reset_rpmsg_ept_cb, NULL);
202
203 nxsem_post(&client->sem);
204 }
205}
206
207static void reset_rpmsg_client_destroy(FAR struct rpmsg_device *rdev,
208 FAR void *priv)

Callers

nothing calls this directly

Calls 3

rpmsg_get_cpunameFunction · 0.85
nxsem_postFunction · 0.85
strcmpFunction · 0.50

Tested by

no test coverage detected