[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5508CBD0.5060508@gmail.com>
Date: Tue, 17 Mar 2015 17:50:24 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Arun Ramamurthy <arun.ramamurthy@...adcom.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-arm-kernel@...ts.infradead.org
CC: Russell King <linux@....linux.org.uk>,
Arnd Bergmann <arnd@...db.de>,
Scott Branden <sbranden@...adcom.com>,
Ray Jui <rjui@...adcom.com>,
Jonathan Richardson <jonathar@...adcom.com>,
"bcm-kernel-feedback-list@...adcom.com"
<bcm-kernel-feedback-list@...adcom.com>,
Olof Johansson <olof@...om.net>,
Anatol Pomazau <anatol@...gle.com>,
Dmitry Torokhov <dtor@...gle.com>
Subject: Re: Setting reboot type at run time for ARM
On 17/03/15 14:44, Arun Ramamurthy wrote:
> Hello
>
> I would like to specify a reset type just before issuing the reboot
> command in the kernel. I know the kernel command line parameter can be
> set as "reboot=w" to indicate warm reset but I want to be able to decide
> this at run time before issuing a reboot command. What would be the best
> way to implement this? Modify the reboot command
> to accept a parameter or is there a standard hook I can use?
If you use the reboot(2) system call you can already specify a large
number of options, for options that are currently not supported by
coreutils' reboot or busybox's reboot, you could probably provide a
shell script wrapper which calls into either your own reboot
implementation or the regular one, would that work?
--
Florian
--
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