All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@twiddle.net>
To: ultralinux@vger.kernel.org
Subject: Re: Accessing an arbitrary user space from a module
Date: Wed, 14 Apr 1999 04:30:42 +0000	[thread overview]
Message-ID: <marc-linux-ultrasparc-92406932915557@msgid-missing> (raw)
In-Reply-To: <marc-linux-ultrasparc-92406432012725@msgid-missing>

   Date: 	Wed, 14 Apr 1999 11:44:41 +0900
   From: "Durantez, Marc" <durantez@is.s.u-tokyo.ac.jp>

   First case: I am not at interrupt time but I am in the context of
   another process like a deamon or whatever.

copy_to_user(user_pointer, kernel_pointer, size);

   Second case: At interrupt time, what can I do?

Allocate a kernel buffer in your driver beforehand, provide a device
driver mmap() operation to let the user map this into his address
space, at interrupt time copy into the kernel buffer and the data will
magically appear into the user's mapping of it.

Later,
David S. Miller
davem@redhat.com

  reply	other threads:[~1999-04-14  4:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-14  2:44 Accessing an arbitrary user space from a module Durantez, Marc
1999-04-14  4:30 ` David Miller [this message]
1999-04-14  7:11 ` Durantez, Marc
1999-04-14  7:12 ` David Miller

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=marc-linux-ultrasparc-92406932915557@msgid-missing \
    --to=davem@twiddle.net \
    --cc=ultralinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.