lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ