[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0703061451480.10909@twin.jikos.cz>
Date: Tue, 6 Mar 2007 14:52:38 +0100 (CET)
From: Jiri Kosina <jikos@...os.cz>
To: Mockern <Mockern@...dex.ru>
cc: linux-kernel@...r.kernel.org
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists