Skip to content

Commit

Permalink
purge: Add a small command-line utility for purging all volatile memory
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Dec 9, 2019
1 parent dbb644f commit dfc5eb2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Userland/purge.cpp
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit dfc5eb2

Please sign in to comment.