OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
706 stars 288 forks source link

openamp: add new ops wait_notified() to avoid looping in tx buffer get #518

Closed CV-Bowen closed 10 months ago

CV-Bowen commented 11 months ago

Give users a chance to handle the no tx buffer situation when get tx buffer, with this patch, user can call rproc_virtio_set_wait_notified() to set the wait_notified() callback and this callback function will be called to handle the wait when no tx buffer in tx virtqueue.

CV-Bowen commented 11 months ago

@arnopo @GUIDINGLI @xiaoxiang781216

arnopo commented 11 months ago

I suppose that this one is related to https://github.com/OpenAMP/open-amp/pull/347, right?

CV-Bowen commented 11 months ago

@arnopo Yes, but I can't push #347, so I create this PR.

arnopo commented 10 months ago

@edmooring, @tnmysh ,

Please, could your review this PR?