mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
Kernel/Userland: Add a halt syscall, and a shutdown binary to invoke it
This commit is contained in:
parent
9e0f7acfe5
commit
952382b413
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ public:
|
|||
unsigned fsid() const { return m_fsid; }
|
||||
static FS* from_fsid(dword);
|
||||
static void sync();
|
||||
static void lock_all();
|
||||
|
||||
virtual bool initialize() = 0;
|
||||
virtual const char* class_name() const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue