From: "Stephen C. Tweedie" <sct@redhat.com>
To: Stephane Letz <letz@grame.fr>
Cc: linux-mm@kvack.org, Stephen Tweedie <sct@redhat.com>
Subject: Re: Large shared memory segment in kernel
Date: Wed, 24 May 2000 12:55:46 +0100 [thread overview]
Message-ID: <20000524125546.J31803@redhat.com> (raw)
In-Reply-To: <v03007801b55167f9bf16@[194.5.49.5]>; from letz@grame.fr on Wed, May 24, 2000 at 01:14:40PM +0200
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/
prev parent reply other threads:[~2000-05-24 11:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-24 11:14 Stephane Letz
2000-05-24 11:55 ` Stephen C. Tweedie [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=20000524125546.J31803@redhat.com \
--to=sct@redhat.com \
--cc=letz@grame.fr \
--cc=linux-mm@kvack.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