Files
linux-kernel-module-cheat/kernel_module/user/time_boot.c
2018-07-09 17:03:50 +01:00

14 lines
258 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#time_boot-out */
#include <stdio.h>
#include <unistd.h>
int main(void) {
FILE *fp;
fp = fopen("/dev/kmsg", "w");
fputs(__FILE__ "\n", fp);
fclose(fp);
while (1)
sleep(0xFFFFFFFF);
}