10000 kernel: process loading: update comments & remove capabilities by bradjc · Pull Request #3509 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kernel: process loading: update comments & remove capabilities #3509

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

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

bradjc
Copy link
Contributor
@bradjc bradjc commented Jun 24, 2023

Pull Request Overview

In process loading we don't need capabilities for non-pub functions.

Testing Strategy

travis

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

We don't need capabilities for non-pub functions.
Copy link
Member
@lschuermann lschuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I agree with these changes, but I feel like it's going to be an easy mistake to change these functions to be pub, but not take a capability. I wouldn't have an issue passing the capability onward to these internal functions, given that those are the actual process loading implementations for which the capability is actually relevant.

@bradjc
Copy link
Contributor Author
bradjc commented Jun 28, 2023

I guess I agree with these changes, but I feel like it's going to be an easy mistake to change these functions to be pub, but not take a capability. I wouldn't have an issue passing the capability onward to these internal functions, given that those are the actual process loading implementations for which the capability is actually relevant.

I think this is true of numerous functions in the kernel crate. I think we should keep the use case of capabilities narrow and not speculative.

@hudson-ayers hudson-ayers added this pull request to the merge queue Jul 11, 2023
Merged via the queue into master with commit 58df7d7 Jul 11, 2023
@ppannuto ppannuto deleted the kernel-process-loading-cap-doc branch July 12, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0