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

Function rpmsg_test_init

drivers/rpmsg/rpmsg_test.c:256–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256int rpmsg_test_init(FAR struct rpmsg_device *rdev,
257 FAR struct rpmsg_endpoint *ept)
258{
259 FAR struct rpmsg_test_priv_s *priv;
260
261 priv = kmm_zalloc(sizeof(*priv));
262 if (priv == NULL)
263 {
264 return -ENOMEM;
265 }
266
267 list_initialize(&priv->rxhead);
268 priv->ept = ept;
269 ept->priv = priv;
270 return rpmsg_create_ept(ept, rdev, RPMSG_TEST_EPT_NAME,
271 RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
272 rpmsg_test_ept_cb, NULL);
273}
274
275void rpmsg_test_deinit(FAR struct rpmsg_endpoint *ept)
276{

Callers 1

rpmsg_device_createdFunction · 0.85

Calls 1

kmm_zallocFunction · 0.85

Tested by

no test coverage detected