From: "David Sanán Baena" <davidsanan@teleline.es>
To: <linux-kernel@vger.kernel.org>
Subject: how to access user space memory from kernel.
Date: Mon, 11 Nov 2002 23:40:19 +0100 [thread overview]
Message-ID: <00df01c289d3$52969420$6e9afea9@anabel> (raw)
Hi. I need to access to user space memory from a kernel module. This module
is not a driver, so I would like how can i write and read from/to a variable
in a user application from my kernel module?
At first I thought I could do that with shared memory (shmget, shmat...),
but in that is not possible in a kernel module. So I have thought to do it
with copy_from_user and copy_to_user, but i don't know how to do it exactly,
basically how to know where to write or read in the user var...
Any suggestion???
Thanks in advance
next reply other threads:[~2002-11-11 22:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 22:40 David Sanán Baena [this message]
2002-11-11 22:59 ` Ben Collins
2002-11-12 1:46 ` Livio Baldini Soares
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='00df01c289d3$52969420$6e9afea9@anabel' \
--to=davidsanan@teleline.es \
--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
all inboxes | Powered by JetHome®