1#ifndef DEVICES_SHUTDOWN_H
2#define DEVICES_SHUTDOWN_H
void shutdown(void)
Shuts down the machine in the way configured by shutdown_configure().
void shutdown_configure(enum shutdown_type)
Sets TYPE as the way that machine will shut down when Pintos execution is complete.
shutdown_type
How to shut down when Pintos has nothing left to do.
@ SHUTDOWN_POWER_OFF
Power off the machine (if possible).
@ SHUTDOWN_NONE
Loop forever.
@ SHUTDOWN_REBOOT
Reboot the machine (if possible).
void shutdown_power_off(void) NO_RETURN
devices/shutdown.h
void shutdown_reboot(void) NO_RETURN
Reboots the machine via the keyboard controller.