lkml.org 
[lkml]   [2014]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/11] kexec: A new system call, kexec_file_load, for in kernel kexec
On Mon, 24 Feb 2014 11:41:31 -0500
Vivek Goyal <vgoyal@redhat.com> wrote:

> On Fri, Feb 21, 2014 at 03:59:10PM +0100, Borislav Petkov wrote:
>
>[...]
> >
> > ...
> >
> > > diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h
> > > index d6629d4..5fddb1b 100644
> > > --- a/include/uapi/linux/kexec.h
> > > +++ b/include/uapi/linux/kexec.h
> > > @@ -13,6 +13,10 @@
> > > #define KEXEC_PRESERVE_CONTEXT 0x00000002
> > > #define KEXEC_ARCH_MASK 0xffff0000
> > >
> > > +/* Kexec file load interface flags */
> > > +#define KEXEC_FILE_UNLOAD 0x00000001
> > > +#define KEXEC_FILE_ON_CRASH 0x00000002
> >
> > BIT()
>
> What's that?

#define BIT(nr) (1UL << (nr))

For my part I'm not convinced it's a better way to do it, unless
Borislav also wanted to suggest adding an enum for the bit number
values...

Petr T


\
 
 \ /
  Last update: 2014-02-25 21:01    [W:0.065 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site