From: "Manfred Spraul" <manfred@colorfullife.com>
To: "Kevin Pedretti" <ktpedre@sandia.gov>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: do_exit() and lock_kernel() semantics
Date: Mon, 25 Mar 2002 21:13:15 +0100 [thread overview]
Message-ID: <003301c1d439$97a26030$010411ac@local> (raw)
> Thus, for each receive we have to convert the virt address of the
> user-land receive buffer to a physical address (in the kernel region)
> before doing the memcpy (copy_to_user doesn't work from interrupt
> context).
Why do you want to do that at interrupt time?
I'd call map_user_kiobuf() when the user-land buffer is set up, and then
write directly (i.e. with kmap_atomic()) into the pages stored in
iobuf->maplist[]. It avoids the page table scan at interrupt time.
Which platform do you use? map_user_kiobuf() doesn't enforce cache
coherency internally, outside of i386 you might need additional
flush_cache_whatever (see Documentation/cachetlb.txt)
--
Manfred
next reply other threads:[~2002-03-25 20:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-25 20:13 Manfred Spraul [this message]
2002-03-25 20:46 ` do_exit() and lock_kernel() semantics Kevin Pedretti
-- strict thread matches above, loose matches on Subject: below --
2002-03-25 19:25 Kevin Pedretti
2002-03-25 20:17 ` Andrew Morton
2002-03-26 7:53 ` Ashok Raj
2002-03-26 10:11 ` Itai Nahshon
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='003301c1d439$97a26030$010411ac@local' \
--to=manfred@colorfullife.com \
--cc=ktpedre@sandia.gov \
--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