Skip to content
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

it would be an better idea to loop the list instead of the addr #55

Open
suikajan opened this issue Jan 23, 2025 · 1 comment
Open

it would be an better idea to loop the list instead of the addr #55

suikajan opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels

Comments

@suikajan
Copy link

suikajan commented Jan 23, 2025

in function rpmsg_lite_create_ept, line 467

@MichalPrincNXP
Copy link
Contributor

Hello @suikajan , the goal here is to find the lowest free address. Consider the order of addresses in the list could be random (EPs could be dynamically added and destroyed).
The list is traversed within the rpmsg_lite_get_endpoint_from_addr() looking for address match. This makes the implementation simple.
When traversing the list directly and looking for used addresses, finding the lowest free address would not be easy.
Regards
Michal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants