linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Kernel tempory memory alloc
@ 2005-11-19 12:45 James Courtier-Dutton
  2005-11-19 18:57 ` Fawad Lateef
  0 siblings, 1 reply; 3+ messages in thread
From: James Courtier-Dutton @ 2005-11-19 12:45 UTC (permalink / raw)
  To: linux-mm

Hi,

I am going to implement an IOCTL for a particular driver.
Previously I might have used the stack to store the request/response in 
while using copy_to/from_user, but with the 4K stack limit, I must 
consider other alternatives.
The IOCTL will be a simple request/response type, so the memory 
allocation will be for a very short time. Which is the correct memory 
api to use when allocating short term temporary memory in the kernel.
Alternatively, is there a way to handle this by simply moving a page 
from user space to kernel space and then back to user space again?
Thus reducing the amount of memcpy.

James

--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2005-11-19 23:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-19 12:45 Kernel tempory memory alloc James Courtier-Dutton
2005-11-19 18:57 ` Fawad Lateef
2005-11-19 23:54   ` Andi Kleen

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