Kernel Newbies Archive on lore.kernel.org
 help / color / Atom feed
* memory mapping from user space to kernel space
@ 2020-09-19 12:45 JeongHwan Kim
  2020-09-19 13:40 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: JeongHwan Kim @ 2020-09-19 12:45 UTC (permalink / raw)
  To: kernelnewbies

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?


Thanks in advance

J.H.Kim



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

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

* Re: memory mapping from user space to kernel space
  2020-09-19 12:45 memory mapping from user space to kernel space JeongHwan Kim
@ 2020-09-19 13:40 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2020-09-19 13:40 UTC (permalink / raw)
  To: JeongHwan Kim; +Cc: kernelnewbies

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

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-19 12:45 memory mapping from user space to kernel space JeongHwan Kim
2020-09-19 13:40 ` Greg KH

Kernel Newbies Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git