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

Move implementations of kernel configuration tools to capsules #3845

Open
2 tasks
bradjc opened this issue Feb 11, 2024 · 0 comments
Open
2 tasks

Move implementations of kernel configuration tools to capsules #3845

bradjc opened this issue Feb 11, 2024 · 0 comments
Labels
rfc Issue designed for discussion and to solicit feedback.

Comments

@bradjc
Copy link
Contributor

bradjc commented Feb 11, 2024

As discussed on a recent core call, it might be a good idea to move implementations of kernel-level configuration traits into capsules. These are mechanisms that boards can choose to use, and implement traits defined in the kernel crate, but do not (and should not) use any internal kernel interfaces, and therefore can be implemented anywhere. The implementations are intended to be conveniences for boards which might want to use them, but can also be implemented by boards directly.

Proposal

We create a new capsules crate called policies, and move the in-kernel implementations to it.

List to move

  • process_policies.rs implementations
  • process_checker/ implementations

Discussion

This could be a new module in the capsules/core crate. However, it might be better to entirely separate these capsules, as they are used in a very different way (to configure the kernel itself and not to provide features for userspace/application logic).

@bradjc bradjc added the rfc Issue designed for discussion and to solicit feedback. label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfc Issue designed for discussion and to solicit feedback.
Projects
None yet
Development

No branches or pull requests

1 participant