Re: Suspend 2 merge: 24/51: Keyboard and serial console hooks.

Christoph Hellwig
2004-11-24T14:09:51Z

On Wed, Nov 24, 2004 at 11:59:02PM +1100, Nigel Cunningham wrote:
> Here we add simple hooks so that the user can interact with suspend
> while it is running. (Hmm. The serial console condition could be
> simplified :>). The hooks allow you to do such things as:
>
> - cancel suspending
> - change the amount of detail of debugging info shown
> - change what debugging info is shown
> - pause the process
> - single step
> - toggle rebooting instead of powering down

And why would we want this? If the users calls the suspend call
he surely wants to suspend, right?

After all we don't have inkernel hooks to allow a user to read instead
write after calling sys_write.