mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00: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
Add a link
Reference in a new issue