X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fdevices%2Fshutdown.h;h=dc4f942384d44f210469b83b4b412799bb86213f;hp=7bcef19e7759509c7625920785bb1ef1829b22d9;hb=94618414d6e0e051cf95e900c63ed2835ed16a82;hpb=19becec31c5704572a3575336c57364d72fd572b diff --git a/src/devices/shutdown.h b/src/devices/shutdown.h index 7bcef19..dc4f942 100644 --- a/src/devices/shutdown.h +++ b/src/devices/shutdown.h @@ -3,6 +3,16 @@ #include +/* How to shut down when Pintos has nothing left to do. */ +enum shutdown_type + { + SHUTDOWN_NONE, /* Loop forever. */ + SHUTDOWN_POWER_OFF, /* Power off the machine (if possible). */ + SHUTDOWN_REBOOT, /* Reboot the machine (if possible). */ + }; + +void shutdown (void); +void shutdown_configure (enum shutdown_type); void shutdown_reboot (void) NO_RETURN; void shutdown_power_off (void) NO_RETURN;