public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* how to access user space memory from kernel.
@ 2002-11-11 22:40 David Sanán Baena
  2002-11-11 22:59 ` Ben Collins
  0 siblings, 1 reply; 3+ messages in thread
From: David Sanán Baena @ 2002-11-11 22:40 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-12  1:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-11 22:40 how to access user space memory from kernel David Sanán Baena
2002-11-11 22:59 ` Ben Collins
2002-11-12  1:46   ` Livio Baldini Soares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox