Skip to content
Snippets Groups Projects
Commit 6b221e35 authored by h2-addad's avatar h2-addad
Browse files

Update

parent 6ae579e5
Branches
No related tags found
No related merge requests found
#ifndef DEVICES_SHUTDOWN_H
#define DEVICES_SHUTDOWN_H
#include <debug.h>
/* 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;
#endif /* devices/shutdown.h */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment