cregit-Linux how code gets into the kernel

Release 4.10 samples/watchdog/watchdog-simple.c

Directory: samples/watchdog
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>


int main(void) { int fd = open("/dev/watchdog", O_WRONLY); int ret = 0; if (fd == -1) { perror("watchdog"); exit(EXIT_FAILURE); } while (1) { ret = write(fd, "\0", 1); if (ret != 1) { ret = -1; break; } sleep(10); } close(fd); return ret; }

Contributors

PersonTokensPropCommitsCommitProp
randy dunlaprandy dunlap5463.53%150.00%
americo wangamerico wang3136.47%150.00%
Total85100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
randy dunlaprandy dunlap6061.86%133.33%
americo wangamerico wang3131.96%133.33%
jean delvarejean delvare66.19%133.33%
Total97100.00%3100.00%
Directory: samples/watchdog
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.