login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
6
Re: [patch 1/9] compat_ioctl: move common block ioctls to compat_blkdev_ioctl
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Christoph Hellwig <hch@...>
To: Arnd Bergmann <arnd@...>
Cc: Jens Axboe <jens.axboe@...>, <linux-kernel@...>, <davem@...>, <hch@...>, Al Viro <viro@...>
Subject:
Re: [patch 1/9] compat_ioctl: move common block ioctls to compat_blkdev_ioctl
Date: Saturday, October 6, 2007 - 2:55 pm
On Sat, Oct 06, 2007 at 08:19:03PM +0200, Arnd Bergmann wrote:
quoted text
> +static int compat_put_ushort(unsigned long arg, unsigned short val) > +{ > + return put_user(val, (unsigned short __user *)compat_ptr(arg)); > +} > + > +static int compat_put_int(unsigned long arg, int val) > +{ > + return put_user(val, (compat_int_t __user *)compat_ptr(arg)); > +} > + > +static int compat_put_long(unsigned long arg, long val) > +{ > + return put_user(val, (compat_long_t __user *)compat_ptr(arg)); > +} > + > +static int compat_put_ulong(unsigned long arg, compat_ulong_t val) > +{ > + return put_user(val, (compat_ulong_t __user *)compat_ptr(arg)); > +} > + > +static int compat_put_u64(unsigned long arg, u64 val) > +{ > + return put_user(val, (compat_u64 __user *)compat_ptr(arg)); > +}
These should probably be in compat.h -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 1/9] compat_ioctl: move common block ioctls to compat...
, Arnd Bergmann
, (Sat Oct 6, 2:19 pm)
Re: [patch 1/9] compat_ioctl: move common block ioctls to co...
, Christoph Hellwig
, (Sat Oct 6, 2:55 pm)
Re: [patch 1/9] compat_ioctl: move common block ioctls to co...
, Arnd Bergmann
, (Sat Oct 6, 7:44 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Linus Torvalds
Linux 2.6.27-rc5
Jared Hulbert
[PATCH 00/10] AXFS: Advanced XIP filesystem
Linus Torvalds
Linux 2.6.27-rc8
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Antonio Almeida
HTB accuracy for high speed
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
939 guests
online.
Online users
zeekec
strcmp
steptwonow
inefut40
Jeremy
Syndicate