kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: JeongHwan Kim <frog007.kernel.kr@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: memory mapping from user space to kernel space
Date: Sat, 19 Sep 2020 15:40:00 +0200	[thread overview]
Message-ID: <20200919134000.GB2562161@kroah.com> (raw)
In-Reply-To: <f378bf72-10a4-8190-b71a-2a3da94ec9c7@gmail.com>

On Sat, Sep 19, 2020 at 09:45:33PM +0900, JeongHwan Kim wrote:
> Hi, everyone
> 
> 
> The memory mapping from memory allocated in kernel space to user space is
> possible
> 
> to use mmap, but is it possible to map memory allocated in user space to
> kernel?

It is possible, but very messy and difficult, and strongly discouraged
when ever possible.  What exactly are you trying to do?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2020-09-19 13:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-19 12:45 memory mapping from user space to kernel space JeongHwan Kim
2020-09-19 13:40 ` Greg KH [this message]

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=20200919134000.GB2562161@kroah.com \
    --to=greg@kroah.com \
    --cc=frog007.kernel.kr@gmail.com \
    --cc=kernelnewbies@kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).