rename init_dev_kmsg to time_boot and move doc to README

This commit is contained in:
Ciro Santilli
2018-07-09 17:03:05 +01:00
parent be6319ab89
commit 7b8811ee3d
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
/* 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);
}