[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101015021546.GA15339@windriver.com>
Date: Fri, 15 Oct 2010 10:15:46 +0800
From: Yong Zhang <yong.zhang@...driver.com>
To: Tom Brown <sa212+emis@...onix.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: Question: how to copy to user space from a tasklet
On Thu, Oct 14, 2010 at 11:43:16AM +0100, Tom Brown wrote:
> [Sorry to have to ask this here - I can't find any driver-specific
> newsgroup or mailing lists - are there any??]
>
> I have a driver which needs to copy device data direct to user space
> from a tasklet. I need to do this because the device is continuously
> DMA'ing into user space, with no user intervention, so the user
> isn't waiting for data. In other words, I don't have any
> user-associated process to wake up.
>
> This means that I have to somehow copy the data directly to the user
> from the tasklet, without sleeping, and without direct access to
> user context. Can someone tell me how to do this?
Are you seeking for probe_kernel_read/write(include/linux/uaccess.h)?
Thanks,
Yong
>
> Thanks
>
> Tom
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists