From: john moser <bluefoxicy@linux.net>
To: linux-kernel@vger.kernel.org
Subject: Kernel-User shared buffer
Date: Fri, 5 Mar 2004 16:06:16 -0800 (PST) [thread overview]
Message-ID: <20040306000616.1D51F3953@sitemail.everyone.net> (raw)
Hi.
I'm trying to create a shared buffer for realtime communication
between the kernel and a userspace application. All allocation
is done for the userspace task in the kernel, and the kernel is
to write to the ram from within syscalls made by other
processes.
I don't think remap_page_range will work for this application,
but I am unsure, and I am unsure of its usage besides.
The basic logic is pretty much as follows:
task_t *acl_daemon = tskacld;
acldata *waclque;
waclque = kmalloc(sizeof(acldata), GFP_KERN);
addr = map_to_user(acl_daemon, waclque, sizeof(acldata));
old_aclque->msg = msg;
old_aclque->next = addr;
old_aclque->eval = ACL_EVAL_EVAL;
pretty much, I want to map system memory to userspace per task,
in the context of the core kernel. This is NOT a driver or
loadable module.
If you could give me a source file and function name of a
function that does this or does something similar, I could
work from there. I've already tried making do_mmap() call a
do_mmap_task() (which is the original do_mmap() with "current"
replaced with "tsk", and tsk passed), but I don't think this
helps me :/
_____________________________________________________________
Linux.Net -->Open Source to everyone
Powered by Linare Corporation
http://www.linare.com/
next reply other threads:[~2004-03-06 0:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-06 0:06 john moser [this message]
2004-03-06 21:05 ` Karim Yaghmour
[not found] <819206922@toto.iv>
2004-03-09 0:49 ` Peter Chubb
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=20040306000616.1D51F3953@sitemail.everyone.net \
--to=bluefoxicy@linux.net \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®