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

    > The mempolicy mode constants, MPOL_DEFAULT, MPOL_PREFERRED, MPOL_BIND,
    > and MPOL_INTERLEAVE, are better declared as part of an enum for type
    > checking.
    > The policy member of struct mempolicy is also converted from type short
    > to type unsigned short. A negative policy does not have any legitimate
    > meaning, so it is possible to change its type in preparation for adding
    > optional mode flags later.

    The second paragraphs seems to indicate that such an approach does not
    work since we also use MPOL_xx constants to set flags in the memory

     \ /
      Last update: 2008-02-11 20:35    [W:0.020 / U:31.200 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site