Question 1) How do i shutdown my computer? is there any interrupt for this?
Question 2) I heard that acpi power options can be used to shutdown or restart or put the computer to sleep. mode. Well how to do it? are they in form of some routines that can be called? if so how to call them? or are they include in any of the interrupts?
Question 3) suppose when the os is running i press power button which is on the cabinet. then is any irq fired so that my os can prepare and shutdown the computer?
Edit: Here i am talking about my Own OS not windows.