Module Name: src Committed By: kamil Date: Tue May 29 16:53:56 UTC 2018
Modified Files: src/sys/modules/examples: Makefile README Added Files: src/sys/modules/examples/panic_string: Makefile panic_string.c Log Message: Introduce new example kernel module: panic_string The panic_string module accepts input from a device file over the write(2) system call. It prints panic(9) message passed from user space, e.g.: echo "Hello world" > /dev/panic If a string is empty or contain only whitespaces it's ignored and panic(9) is not triggered. If a non printable character is passed within the input buffer, the rest of the string is ignored. This module performs the sync(8) operation before panic(9) to flush cache. Submitted by Harry Pantazis. Simplified and cleaned up by myself. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/modules/examples/Makefile cvs rdiff -u -r1.7 -r1.8 src/sys/modules/examples/README cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/panic_string/Makefile \ src/sys/modules/examples/panic_string/panic_string.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.