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

Add sysctl() #1132

Open
patacongo opened this issue May 26, 2020 · 0 comments
Open

Add sysctl() #1132

patacongo opened this issue May 26, 2020 · 0 comments
Labels
Area: Modularity Needed to support modular architecture Type: Enhancement New feature or request

Comments

@patacongo
Copy link
Contributor

patacongo commented May 26, 2020

Currently, we have several non-standard OS control interfaces. Some of these are analogous to similar interfaces in NuttX:

  • prctl(): This is where task/process specific settings should be set. At present, I think this is only the task name. (but I would like to see this extended to include the number of file descriptors in the future).
  • boardctl(): This was intended to provide hooks into board-specific initialization and control logic.

The problem is that the scope of the boardctl() commands has increased. It now includes many commands that are unrelated to boards but are general system control commands. This includes commands to control graphics, ramdisks, symbol tables, power management, etc.

The proposal here is that we create a new system control interface called sysctl() as it is in Linux:

  • sysctl(): This would provide hooks into system-wide initialization and control logic.

Initially this would just move the system-wide commands that are erroneously included in boardctl() into sysctl(). But this would be a place where we could grow additional system-wide commands.

@patacongo patacongo added Type: Enhancement New feature or request Area: Modularity Needed to support modular architecture labels May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Modularity Needed to support modular architecture Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant