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.
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.