mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
purge: Add a small command-line utility for purging all volatile memory
This commit is contained in:
parent
dbb644f20c
commit
dfc5eb2b6d
1 changed files with 9 additions and 0 deletions
9
Userland/purge.cpp
Normal file
9
Userland/purge.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <stdio.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
int purged_page_count = syscall(SC_purge);
|
||||
printf("Purged page count: %d\n", purged_page_count);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue