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

    > struct mempolicy {
    > atomic_t refcnt;
    > - short policy; /* See MPOL_* above */
    > + unsigned short policy; /* See MPOL_* above */

    The point here is to have a 16 bit value? There are no space savins due to
    the alignment requirement of the union. Isnt it possible to use the enum
    here? If not then what is the point of the enum?



    \
     
     \ /
      Last update: 2008-02-27 20:37    [W:0.025 / U:1.396 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site