lkml.org 
[lkml]   [2010]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v11 17/17]add two new ioctls for mp device.
    From
    Date
    On Sat, 2010-09-25 at 12:27 +0800, xiaohui.xin@intel.com wrote:
    > From: Xin Xiaohui <xiaohui.xin@intel.com>
    >
    > The patch add two ioctls for mp device.
    > One is for userspace to query how much memory locked to make mp device
    > run smoothly. Another one is for userspace to set how much meory locked
    > it really wants.
    [...]
    > diff --git a/include/linux/mpassthru.h b/include/linux/mpassthru.h
    > index ba8f320..083e9f7 100644
    > --- a/include/linux/mpassthru.h
    > +++ b/include/linux/mpassthru.h
    > @@ -7,6 +7,8 @@
    > /* ioctl defines */
    > #define MPASSTHRU_BINDDEV _IOW('M', 213, int)
    > #define MPASSTHRU_UNBINDDEV _IO('M', 214)
    > +#define MPASSTHRU_SET_MEM_LOCKED _IOW('M', 215, unsigned long)
    > +#define MPASSTHRU_GET_MEM_LOCKED_NEED _IOR('M', 216, unsigned long)
    [...]

    These will need compat handling. You can avoid that by defining them to
    use a parameter type of u32 or u64.

    Ben.

    --
    Ben Hutchings, Senior Software Engineer, Solarflare Communications
    Not speaking for my employer; that's the marketing department's job.
    They asked us to note that Solarflare product names are trademarked.



    \
     
     \ /
      Last update: 2010-09-27 23:39    [W:2.968 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site