mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Kernel/Userland: Add a halt syscall, and a shutdown binary to invoke it
This commit is contained in:
parent
9e0f7acfe5
commit
952382b413
Notes:
sideshowbarker
2024-07-19 13:35:18 +09:00
Author: https://github.com/rburchell
Commit: 952382b413
Pull-request: https://github.com/SerenityOS/serenity/pull/232
Reviewed-by: https://github.com/awesomekling
5 changed files with 38 additions and 1 deletions
|
@ -68,3 +68,11 @@ void FS::sync()
|
|||
for (auto fs : fses)
|
||||
fs->flush_writes();
|
||||
}
|
||||
|
||||
void FS::lock_all()
|
||||
{
|
||||
for (auto& it : all_fses()) {
|
||||
it.value->m_lock.lock();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue