Messages in this thread | | | Date | Tue, 6 Mar 2007 14:52:38 +0100 (CET) | From | Jiri Kosina <> | Subject | Re: Question: shutdown Linux from user space |
| |
On Tue, 6 Mar 2007, Mockern wrote:
> I need to shutdown Linux from user level application. Which is the best > way to do it? (I need it for embedded system)
Use sys_reboot() syscall with either LINUX_REBOOT_CMD_HALT or LINUX_REBOOT_CMD_POWER_OFF.
Also this is probably offtopic here, please use kernelnewbies mailinglist instead.
-- Jiri Kosina - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |