mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
GitHub converts differently than asciidoctor... the only way to keep them consistent is to explicitly set IDs.
15 lines
292 B
C
15 lines
292 B
C
/* https://cirosantilli.com/linux-kernel-module-cheat#time-boot-out */
|
|
|
|
#define _XOPEN_SOURCE 700
|
|
#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);
|
|
}
|