public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tom Brown <sa212+emis@cyconix.com>
To: LKML <linux-kernel@vger.kernel.org>
Subject: Question: how to copy to user space from a tasklet
Date: Thu, 14 Oct 2010 11:43:16 +0100	[thread overview]
Message-ID: <4CB6DEC4.4040408@cyconix.com> (raw)

[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?

Thanks

Tom

             reply	other threads:[~2010-10-14 10:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 10:43 Tom Brown [this message]
2010-10-15  2:15 ` Question: how to copy to user space from a tasklet Yong Zhang
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=4CB6DEC4.4040408@cyconix.com \
    --to=sa212+emis@cyconix.com \
    --cc=linux-kernel@vger.kernel.org \
    /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