Skip to contentSkip to conversation

Question: shutdown Linux from user space

DISCUSSION Mockern 2 participants 2 messages Mar 6, 2007

lore
Share & tools
lore

Mockern

author
#0 lore raw

Hi,

I need to shutdown Linux from user level application.

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

#1 lore raw
Quoted 2 lines · Mockern

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.

Signature · 1 line
Jiri Kosina