Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Calling panic

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.

Name: Anonymous 2008-03-02 13:49

You'd have to make a device driver that when invoked, it calls the kernel function 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.

Junction this to something like /dev/suicide.  And then, echo "Goodbye." > /dev/suicide.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List