[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: From Eric Anholt:

    On Wed, 12 May 2004, Dave Airlie wrote:
    > I just looked at drm.h and nearly all the ioctls use int, this file is
    > included in user-space applications also at the moment, I'm worried
    > changing all ints to __u32 will break some of these, anyone on DRI list
    > care to comment?

    Right now, all architectures have "int" being 32-bit, so nothing should
    break. Apart from sign issues, of course.

    If there are pointers and "long", then those should just not exist. Never
    expose kernel pointers to user mode (and you really never should pass user
    pointers back), and "long" should really just be "__u32" instead (since
    that is what it is on a 32-bit platform - and if it works there, then it
    should work on a 64-bit platform too).

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.019 / U:10.640 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site