#include #include #include #include #include #include int main(int argc, char *argv[]) { int error, pid, reserve; if (argc != 3) { printf("Usage: %s \n", argv[0]); return 0; } pid = atoi(argv[1]); reserve = atoi(argv[2]); printf("Reserve %d%% CPU time for process %d\n", reserve, pid); error = syscall(__NR_set_process_reserve, pid, reserve); if (error) printf("Error: %d\n", error); return 0; }