mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@quark.didntduck.org>
To: Timo Benk <t_benk@web.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: allocate memory in userspace
Date: Tue, 02 Jul 2002 08:19:30 -0400	[thread overview]
Message-ID: <3D219A52.1060008@quark.didntduck.org> (raw)
In-Reply-To: <20020701172659.GA4431@toshiba>

Timo Benk wrote:
> 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.

What are you trying to do with this module?  If you are needing to use 
syscalls like open(), you are probably trying to do something that is 
forbidden in kernel space.  For example, trying to read a configuration 
file.

Recommended reading:
http://www.linux.org.uk/~ajh/ols2002_proceedings.pdf.gz
The chapter named "How NOT to write kernel drivers", especially sections 
7 and 8.

--
				Brian Gerst


  parent reply	other threads:[~2002-07-02 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-01 17:26 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 ` Brian Gerst [this message]
     [not found] <20020701172659.GA4431@toshiba.suse.lists.linux.kernel>
2002-07-02  9:30 ` allocate memory in userspace Andi Kleen
2002-07-02 10:21   ` Timo Benk

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=3D219A52.1060008@quark.didntduck.org \
    --to=bgerst@quark.didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=t_benk@web.de \
    /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®