All of lore.kernel.org
 help / color / mirror / Atom feed
* allocate memory in userspace
@ 2002-07-01 17:26 Timo Benk
  2002-07-01 17:49 ` Erik Andersen
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Timo Benk @ 2002-07-01 17:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Timo Benk

Hi,

I am a kernel newbie and i am writing a module. I 
need to allocate some memory in userspace because
i want to access syscalls like open(), lstat() etc.
I need to call these methods in the kernel, and in
my special case there is no other way, but i 
do not want to reimplement all the syscalls.

I read that it should be possible, but i cannot
find any example or recipe on how to do it.
It should work with do_mmap() and fd=-1 and
MAP_ANON, but i jusst can't get it to work.

Do you now any working example, or a good reference
for the do_mmap() call? 

Thanks in advance,

-timo

-- 
gpg key fingerprint = 6832 C8EC D823 4059 0CD1  6FBF 9383 7DBD 109E 98DC


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <20020701172659.GA4431@toshiba.suse.lists.linux.kernel>]

end of thread, other threads:[~2002-07-02 12:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-01 17:26 allocate memory in userspace Timo Benk
2002-07-01 17:49 ` Erik Andersen
2002-07-02  8:37   ` William Lee Irwin III
2002-07-02  8:44     ` William Lee Irwin III
2002-07-02  9:00       ` Erik Andersen
2002-07-01 18:39 ` Calin A. Culianu
2002-07-02  7:51 ` allocate memory in userspace (Answer) Timo Benk
2002-07-02 10:24   ` Timo Benk
2002-07-02 12:19 ` allocate memory in userspace Brian Gerst
     [not found] <20020701172659.GA4431@toshiba.suse.lists.linux.kernel>
2002-07-02  9:30 ` Andi Kleen
2002-07-02 10:21   ` Timo Benk

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.