-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a sensible addition.
it's useful to notify the port layer and also symmetry with ns_bind_cb callback.