Re: [PATCH] uio: uio_pdrv_genirq V3
From: Magnus Damm
Date: Fri Jul 11 2008 - 06:26:59 EST
On Fri, Jul 11, 2008 at 7:18 PM, Uwe Kleine-König
<Uwe.Kleine-Koenig@xxxxxxxx> wrote:
> Magnus Damm wrote:
>> - kept irq control spinlock to serialize user space access
> I think you want to assert, that after a succeeded
>
> echo 0 > /dev/uioX
>
> the userspace doesn't need to check for a pending irq?! What happens if
> the irq triggers before you take the lock?
No, I'm not trying to solve anything like that. =)
The serialization code is only there to correctly handle multiple
processes/threads.
/ magnus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/