Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1442423

Re: [PATCH 1/2] Add a kexec_crash_loaded() function

From Josh Triplett <josh@joshtriplett.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] Add a kexec_crash_loaded() function
Date 2016-07-13 15:00 +0200
Message-ID <rUrVE-3bS-27@gated-at.bofh.it> (permalink)
References <rUrsB-30I-3@gated-at.bofh.it> <rUrsC-30I-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 13, 2016 at 02:19:55PM +0200, Petr Tesarik wrote:
> --- a/kernel/kexec_core.c
> +++ b/kernel/kexec_core.c
> @@ -95,6 +95,12 @@ int kexec_should_crash(struct task_struct *p)
>  	return 0;
>  }
>  
> +int kexec_crash_loaded(void)
> +{
> +	return !!kexec_crash_image;
> +}

Nit: this function should return bool rather than int, since it
effectively returns true/false.

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] Add a kexec_crash_loaded() function Petr Tesarik <ptesarik@suse.com> - 2016-07-13 14:30 +0200
  Re: [PATCH 1/2] Add a kexec_crash_loaded() function Josh Triplett <josh@joshtriplett.org> - 2016-07-13 15:00 +0200
    Re: [PATCH 1/2] Add a kexec_crash_loaded() function Petr Tesarik <ptesarik@suse.com> - 2016-07-13 15:10 +0200

csiph-web