From: Yong Zhang <yong.zhang@windriver.com>
To: Tom Brown <sa212+emis@cyconix.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Question: how to copy to user space from a tasklet
Date: Fri, 15 Oct 2010 10:15:46 +0800 [thread overview]
Message-ID: <20101015021546.GA15339@windriver.com> (raw)
In-Reply-To: <4CB6DEC4.4040408@cyconix.com>
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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2010-10-15 2:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 10:43 Question: how to copy to user space from a tasklet Tom Brown
2010-10-15 2:15 ` Yong Zhang [this message]
2010-10-15 5:57 ` Stefan Richter
2010-10-15 8:59 ` Arnd Bergmann
2010-10-18 15:45 ` Tom Brown
2010-10-18 17:01 ` Stefan Richter
2010-10-18 18:02 ` Tom Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101015021546.GA15339@windriver.com \
--to=yong.zhang@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sa212+emis@cyconix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox