openamp: add ns_unbind_cb to rpmsg_device#376
Conversation
|
Could you detail your need? in which use case you need to notify the port layer in addition of the endpoint? |
In some case, the service/apps may start later than open-amp framework, and then lose the creation notification from remote peer. To fix this issue, the porting layer could catch the notification and forward it to the client/service at the launch. |
In such case, is the endpoint created by the porting layer?
What about having the |
No, the endpoint is still created by service/application. The resource I mean here is simple channel name and port number:
No, the house keeping data is managed by the porting layer internally, not shared with application at all.
Of course, the application doesn't get any notification in this case since the channel name and port number is removed from cache in ns_unbind_cb callback.
As I explain before, the porting layer doesn't create the endpoint behalf the application, so it can't hook the notification from BTW, it's also wrong to create the endpoint in porting layer because:
|
arnopo
left a comment
There was a problem hiding this comment.
Thanks for the link to the code, easier to understand your need.
The addition of this callback seems reasonable to me.
just documentation to address
fb557b2 to
eaf2d77
Compare
it's useful to notify the port layer and also symmetry with ns_bind_cb callback Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
edmooring
left a comment
There was a problem hiding this comment.
This seems like a sensible addition.
it's useful to notify the port layer and also symmetry with ns_bind_cb callback.