summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/isp
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2018-05-29 16:53:56 +0000
committerkamil <kamil@NetBSD.org>2018-05-29 16:53:56 +0000
commit34113851b17cc396b54223b10e732f8c96aafe4f (patch)
tree3e2d541d8da50e0193e6c4452d052bc871beca99 /sys/dev/microcode/isp
parent00b1e746c972718de30dbf5baf0531b22857598f (diff)
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.
Diffstat (limited to 'sys/dev/microcode/isp')
0 files changed, 0 insertions, 0 deletions