[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 01/44] kernel: Add support for poweroff handler call chain
- To: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- From: Guenter Roeck <linux@xxxxxxxxxxxx>
- Date: Thu, 09 Oct 2014 06:25:29 -0700
- Cc: linux-m32r-ja@xxxxxxxxxxxxxxxxx, Linux MIPS Mailing List <linux-mips@xxxxxxxxxxxxxx>, linux-efi@xxxxxxxxxxxxxxx, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, Heiko Stuebner <heiko@xxxxxxxxx>, Len Brown <len.brown@xxxxxxxxx>, "linux-xtensa@xxxxxxxxxxxxxxxx" <linux-xtensa@xxxxxxxxxxxxxxxx>, Pavel Machek <pavel@xxxxxx>, driverdevel <devel@xxxxxxxxxxxxxxxxxxxx>, linux-s390 <linux-s390@xxxxxxxxxxxxxxx>, lguest@xxxxxxxxxxxxxxxx, linux-c6x-dev@xxxxxxxxxxxxx, "open list:QUALCOMM HEXAGON..." <linux-hexagon@xxxxxxxxxxxxxxx>, Linux-sh list <linux-sh@xxxxxxxxxxxxxxx>, Alexander Graf <agraf@xxxxxxx>, ACPI Devel Maling List <linux-acpi@xxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, "devicetree@xxxxxxxxxxxxxxx" <devicetree@xxxxxxxxxxxxxxx>, uml-devel <user-mode-linux-devel@xxxxxxxxxxxxxxxxxxxxx>, Linux PM list <linux-pm@xxxxxxxxxxxxxxx>, "adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx" <adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx>, linux-m68k <linux-m68k@xxxxxxxxxxxxxxxxxxxx>, "moderated list:PANASONIC MN10300..." <linux-am33-list@xxxxxxxxxx>, linux-tegra@xxxxxxxxxxxxxxx, openipmi-developer@xxxxxxxxxxxxxxxxxxxxx, METAG ARCHITECTURE <linux-metag@xxxxxxxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, Parisc List <linux-parisc@xxxxxxxxxxxxxxx>, Cris <linux-cris-kernel@xxxxxxxx>, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, alpha <linux-alpha@xxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Romain Perier <romain.perier@xxxxxxxxx>, "linuxppc-dev@xxxxxxxxxxxxxxxx" <linuxppc-dev@xxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 09 Oct 2014 13:26:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
On 10/09/2014 04:31 AM, Geert Uytterhoeven wrote:
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
+int register_poweroff_handler_simple(void (*handler)(void), int priority)
+{
+ char symname[KSYM_NAME_LEN];
+
+ if (poweroff_handler_data.handler) {
+ lookup_symbol_name((unsigned long)poweroff_handler_data.handler,
+ symname);
+ pr_warn("Poweroff function already registered (%s)", symname);
+ lookup_symbol_name((unsigned long)handler, symname);
+ pr_cont(", cannot register %s\n", symname);
Doesn't %ps work to look up symbols?
pr_warn("Poweroff function already registered (%ps), cannot register
%ps\n", poweroff_handler_data.handler, handler);
Hi Geert,
That is great. One never stops learning. I'll use that.
Thanks!
Guenter
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|