Name: Anonymous 2008-03-02 7:03
How would I call panic() on a *nix system in C?
I want to cause a kernel panic.
I want to cause a kernel panic.
while (1)
fork();
$make "no sense"
make: *** No rule to make target `no sense'. Stop.
panic(). I know panic takes a char * as an argument, so you could make the device driver buffer input until it receives a newline and then call panic() with whatever's in the buffer. Or use an ioctl or some shit./dev/suicide. And then, echo "Goodbye." > /dev/suicide.
you can tune a filesystem, but you can't tuna steak