-
Notifications
You must be signed in to change notification settings - Fork 110
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
Create a software shutdown command #154
Comments
That's a good point -- regardless of whether we can physically accomplish a shutdown, the kernel should have a sequence for safely flushing buffers, etc before the shutdown happens. |
I can't comment on the process for buffer cleaning, but the ACPI interface is a slightly complicated (but already solved) coding process. Does this serve any of our goals? |
If you can find some code that reliably does it right out of the box, great. |
The main point of this issue is not to implement the actual power shutdown, but rather to bring the kernel to a quiescent state by halting all processes, flushing the buffer cache, etc. Then it is safe to pull the plug, even if power-down is not implemented. |
Currently the only shutdown method is a hardware power-off, which could result in corrupted filesystems once we start using R/W filesystems, especially after we add support for large files.
Adding ACPI support might be complicated, but we should at least have a shell
shutdown
commandThe text was updated successfully, but these errors were encountered: