lkml.org 
[lkml]   [2008]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 1/4] mempolicy: convert MPOL constants to enum
    On Mon, 11 Feb 2008, David Rientjes wrote:

    > On Mon, 11 Feb 2008, Christoph Lameter wrote:
    >
    > > Then you could follow through with the enum mempolicy thing
    > > throughtout. Why not use enum mempolicy in struct mempolicy?
    > >
    >
    > Mempolicy flags, as I implemented them in patch 2 in this series, are not
    > integer constants that are enumerated starting at 0. They are individual
    > bits that are shifted a pre-defined length and intersected with the
    > enumerated mode. This allows both the mode and the flags to be stored in
    > the same object.

    Ok. Now are you are making the same point that I did before. Lets leave
    enum out if we need to do these tricks with the upper bits.


    \
     
     \ /
      Last update: 2008-02-11 21:49    [W:7.535 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site