nuttx/drivers/rpmsg
yintao 38af7001b6 drivers/rpmsg: fix the race condtion about rpmsg_device_created
xxx_rpmsg_device_created may be called repeatedly.

rptun thread				app thread

rptun_dev_start				xxx_rpmsg_init

...					rpmsg_register_callback
priv->...= rpmsg_ns_unbind;
priv->..= rptun_notify_wait;
					if (ns_unbind_cb)
(switch app thread)				device_created()
						xxx_rpmsg_device_created

					metal_list_add_tail(g_cb);
...
rpmsg_device_created();
	cb->device_created
	xxx_rpmsg_device_created;

Signed-off-by: yintao <yintao@xiaomi.com>
2024-09-14 17:34:52 +08:00
..
CMakeLists.txt rpmsg/CMakeLists.txt: add rpmsg_virtio_ivshmem.c in this file 2024-09-14 17:34:52 +08:00
Kconfig rpmsg_virtio_ivshmem.c: rpmsg virtio ivshmem msix interrupt support 2024-09-14 17:34:52 +08:00
Make.defs rpmsg/rpmsg_virtio_ivshmem: add rpmsg virtio ivshmem support 2024-09-14 17:34:52 +08:00
rpmsg_ping.c rpmsg_ping:only sleep when ping->sleep is larger than 0 2024-09-14 17:34:52 +08:00
rpmsg_ping.h rptun_ping: Strip rptun_ping out of rptun and rename to rpmsg_ping 2024-01-30 04:08:59 -08:00
rpmsg_virtio_ivshmem.c rpmsg_virtio_ivshmem: Replace work with wdog 2024-09-14 17:34:52 +08:00
rpmsg_virtio.c nuttx/rpmsg_virtio.c: fix invalid use of undefined type ‘struct rpmsg_hdr’ err 2024-09-14 17:34:52 +08:00
rpmsg.c drivers/rpmsg: fix the race condtion about rpmsg_device_created 2024-09-14 17:34:52 +08:00