linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Large shared memory segment in kernel
@ 2000-05-24 11:14 Stephane Letz
  2000-05-24 11:55 ` Stephen C. Tweedie
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Letz @ 2000-05-24 11:14 UTC (permalink / raw)
  To: linux-mm

We would like to allocate a large memory segment (several Mb) in a kernel
module so that to access the memory in the kernel module and in user space
application. (be implementing the mmap function in the kernel module)
Is is something that could be done ?  Or kernel modules should only mmap
small amount of memory?

Thanks

Stephane Letz


Grame: Centre National de creation musicale
9, Rue du Garet
69001 Lyon
Tel: 04-72-07-37-00
Fax: 04-72-07-37-01
Web: www.grame.fr


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

* Re: Large shared memory segment in kernel
  2000-05-24 11:14 Large shared memory segment in kernel Stephane Letz
@ 2000-05-24 11:55 ` Stephen C. Tweedie
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 2000-05-24 11:55 UTC (permalink / raw)
  To: Stephane Letz; +Cc: linux-mm, Stephen Tweedie

Hi,

On Wed, May 24, 2000 at 01:14:40PM +0200, Stephane Letz wrote:

> We would like to allocate a large memory segment (several Mb) in a kernel
> module so that to access the memory in the kernel module and in user space
> application. (be implementing the mmap function in the kernel module)
> Is is something that could be done ?  Or kernel modules should only mmap
> small amount of memory?

As long as you are happy for the memory to be non-contiguous, then
it should be fine.  If you are using 2.3 kernels, the kiobuf code at

    ftp.uk.linux.org:/pub/linux/sct/fs/raw-io/kiobuf.2.3.99.pre9-2.tar.gz

has a set of helper functions which make it trivial to do this from 
device drivers (and the patch includes a sample driver to show exactly
how it works).

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

end of thread, other threads:[~2000-05-24 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-24 11:14 Large shared memory segment in kernel Stephane Letz
2000-05-24 11:55 ` Stephen C. Tweedie

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