login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
8
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Paolo Ciarrocchi
Subject:
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl
Date: Tuesday, January 8, 2008 - 1:26 pm
On Jan 8, 2008 9:21 PM, Matthew Wilcox <matthew@wil.cx> wrote:
quoted text
> On Tue, Jan 08, 2008 at 01:16:06PM -0700, Matthew Wilcox wrote: > > On Tue, Jan 08, 2008 at 09:03:13PM +0100, Paolo Ciarrocchi wrote: > > > Yes of course, I've been silly in didn't verify whether the file compile > > > but I would appreciate to know whether I'm on the right track or not. > > > > Well ... you're not. > > Here's what a correct conversion might look like. I haven't tried to > compile it, so I'm copying and pasting it in order to damage whitespace > and make sure nobody tries to compile it. > > index bf1075e..0c543a8 100644 > --- a/arch/arm/common/rtctime.c > +++ b/arch/arm/common/rtctime.c > @@ -174,8 +174,7 @@ static unsigned int rtc_poll(struct file *file, poll_table * > return data != 0 ? POLLIN | POLLRDNORM : 0; > } > > -static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd, > - unsigned long arg) > +static long rtc_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > { > struct rtc_ops *ops = file->private_data; > struct rtc_time tm; > @@ -183,6 +182,8 @@ static int rtc_ioctl(struct inode *inode, struct file *file, > void __user *uarg = (void __user *)arg; > int ret = -EINVAL; > > + lock_kernel(); > + > switch (cmd) { > case RTC_ALM_READ: > ret = rtc_arm_read_alarm(ops, &alrm); > @@ -277,6 +278,9 @@ static int rtc_ioctl(struct inode *inode, struct file *file, > ret = ops->ioctl(cmd, arg); > break; > } > + > + unlock_kernel(); > + > return ret; > } > > @@ -334,7 +338,7 @@ static const struct file_operations rtc_fops = { > .llseek = no_llseek, > .read = rtc_read, > .poll = rtc_poll, > - .ioctl = rtc_ioctl, > + .unlocked_ioctl = rtc_ioctl, > .open = rtc_open, > .release = rtc_release, > .fasync = rtc_fasync, >
Thank you Matthew, I definitely need to back studying before submitting another patch. Ciao, -- Paolo
http://paolo.ciarrocchi.googlepages.com/
--
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:
[JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl
, Andi Kleen
, (Tue Jan 8, 9:40 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Cyrill Gorcunov
, (Tue Jan 8, 10:05 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alexey Dobriyan
, (Tue Jan 8, 11:52 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Tue Jan 8, 12:18 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Matthew Wilcox
, (Tue Jan 8, 1:00 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Paolo Ciarrocchi
, (Tue Jan 8, 1:03 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Matthew Wilcox
, (Tue Jan 8, 1:16 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Matthew Wilcox
, (Tue Jan 8, 1:21 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Rik van Riel
, (Tue Jan 8, 1:22 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Paolo Ciarrocchi
, (Tue Jan 8, 1:26 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Tue Jan 8, 1:42 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Paolo Ciarrocchi
, (Tue Jan 8, 1:45 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Paolo Ciarrocchi
, (Tue Jan 8, 4:43 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Kevin Winchester
, (Tue Jan 8, 4:50 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Dmitri Vorobiev
, (Tue Jan 8, 4:55 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Tue Jan 8, 5:03 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Kevin Winchester
, (Tue Jan 8, 5:17 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Tue Jan 8, 5:27 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Arnd Bergmann
, (Tue Jan 8, 5:40 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Tue Jan 8, 5:47 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Arnd Bergmann
, (Tue Jan 8, 6:19 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Kevin Winchester
, (Tue Jan 8, 6:31 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Junio C Hamano
, (Wed Jan 9, 3:00 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andre Noll
, (Wed Jan 9, 3:34 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Richard Knutsson
, (Wed Jan 9, 6:17 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andre Noll
, (Wed Jan 9, 6:33 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Matt Mackall
, (Wed Jan 9, 1:12 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alasdair G Kergon
, (Wed Jan 9, 3:40 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alasdair G Kergon
, (Wed Jan 9, 3:45 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Wed Jan 9, 3:46 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Chris Friesen
, (Wed Jan 9, 3:58 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alasdair G Kergon
, (Wed Jan 9, 4:05 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Vadim Lobanov
, (Wed Jan 9, 4:31 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alasdair G Kergon
, (Wed Jan 9, 5:00 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Vadim Lobanov
, (Wed Jan 9, 9:59 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Christoph Hellwig
, (Thu Jan 10, 1:34 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Rolf Eike Beer
, (Thu Jan 10, 1:52 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Thu Jan 10, 2:25 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Daniel Phillips
, (Thu Jan 10, 2:49 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Rolf Eike Beer
, (Thu Jan 10, 3:02 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Andi Kleen
, (Thu Jan 10, 3:06 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Alasdair G Kergon
, (Thu Jan 10, 4:39 am)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Daniel Phillips
, (Thu Jan 10, 3:55 pm)
Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocke ...
, Pavel Machek
, (Fri Jan 11, 1:33 am)
supervising, text processing, semantic "patching" (Re: [JA ...
, Oleg Verych
, (Thu Mar 6, 7:54 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate