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

Function rpmsg_get_by_rdev

drivers/rpmsg/rpmsg.c:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 ****************************************************************************/
90
91static inline FAR struct rpmsg_s *
92rpmsg_get_by_rdev(FAR struct rpmsg_device *rdev)
93{
94 if (!rdev)
95 {
96 return NULL;
97 }
98
99 return (FAR struct rpmsg_s *)((FAR char *)rdev - sizeof(struct rpmsg_s));
100}
101
102static int rpmsg_dev_ioctl_(FAR struct rpmsg_s *rpmsg, int cmd,
103 unsigned long arg)

Callers 8

rpmsg_waitFunction · 0.85
rpmsg_postFunction · 0.85
rpmsg_get_local_cpunameFunction · 0.85
rpmsg_get_cpunameFunction · 0.85
rpmsg_get_signalsFunction · 0.85
rpmsg_get_timestampFunction · 0.85
rpmsg_ns_bindFunction · 0.85
rpmsg_ns_unbindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected