The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Question: shutdown Linux from user space
@ 2007-03-06 13:15 Mockern
  2007-03-06 13:52 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Mockern @ 2007-03-06 13:15 UTC (permalink / raw)
  To: linux-kernel

Hi,

I need to shutdown Linux from user level application.

Which is the best way to do it? (I need it for embedded system)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question: shutdown Linux from user space
  2007-03-06 13:15 Question: shutdown Linux from user space Mockern
@ 2007-03-06 13:52 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2007-03-06 13:52 UTC (permalink / raw)
  To: Mockern; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-06 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 13:15 Question: shutdown Linux from user space Mockern
2007-03-06 13:52 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox